public void OnDisable()
 {
     EndEditProbes();
     Undo.undoRedoPerformed       -= UndoRedoPerformed;
     SceneView.onSceneGUIDelegate -= OnSceneGUIDelegate;
     if (target != null)
     {
         m_Editor.PushProbePositions();
         m_Editor = null;
     }
 }
 public void OnEnable()
 {
     m_Editor = new PointEditr(target as LightProbe, this);
     m_Editor.PullProbePositions();
     m_Editor.DeselectProbes();
     m_Editor.PushProbePositions();
     SceneView.onSceneGUIDelegate     += OnSceneGUIDelegate;
     Undo.undoRedoPerformed           += UndoRedoPerformed;
     EditMode.onEditModeStartDelegate += OnEditModeStarted;
     EditMode.onEditModeEndDelegate   += OnEditModeEnded;
 }