Beispiel #1
0
 private void OnEnable()
 {
     _props = new SerializedPropertyDictionary <Prop>(serializedObject,
                                                      (Prop.Created, "_created"),
                                                      (Prop.SnapshotJson, "_snapshotJson"),
                                                      (Prop.AssemblyName, "_assemblyName"),
                                                      (Prop.ClassName, "_testClassName"),
                                                      (Prop.MethodName, "_testMethodName"),
                                                      (Prop.InnerNumber, "_innerNumber"),
                                                      (Prop.ScreenshotFilepath, "_screenshotFilepath"),
                                                      (Prop.ScreenshotFilepathAtTest, "_screenshotFilepathAtTest")
                                                      );
 }
 public CustomEditorParam(SerializedProperty prop)
 {
     propDict = CreatePropDict(prop);
 }
 public CustomEditorParam(SerializedObject SO)
 {
     propDict = CreatePropDict(SO);
 }