internal void Init(WXPostProcessEffectSetting target)
 {
     this.target           = target;
     this.serializedObject = new SerializedObject(target);
     this.activeProperty   = serializedObject.FindProperty("active");
     this.OnEnable();
 }
 private WXPostProcessBaseEditor AddEditor(WXPostProcessEffectSetting setting, SerializedProperty baseProperty)
 {
     System.Type editorType;
     if (WXPostProcessEnv.PostProcessTypeMap.TryGetValue(setting.GetType(), out editorType))
     {
         var editor = System.Activator.CreateInstance(editorType) as WXPostProcessBaseEditor;
         editors.Add(editor);
         editor.Init(setting);
         editor.baseProperty = baseProperty.Copy();
         return(editor);
     }
     Debug.LogErrorFormat("Editor not found for class: {0}", setting.GetType().Name);
     return(null);
 }