/// <summary> /// Raises the disable event. /// </summary> protected virtual void OnDisable() { SceneGUI.DeregisterObjectGUICallback(this as ISceneGUIContext); Undo.undoRedoPerformed -= ApplyModificationsAndUpdateGUIContents; Undo.postprocessModifications -= OnModifyProperty; }
/// <summary> /// Raises the disable event. /// </summary> protected virtual void OnDisable() { SceneGUI.DeregisterObjectGUICallback(this as ISceneGUIContext); Undo.undoRedoPerformed -= UpdateGUIContents; }