void OnDisable()
 {
     UpdateSelection();
     UnityEditor.Undo.undoRedoPerformed -= OnUndoRedoPerformed;
     PreviewTextureManager.CleanUp();
     Reset();
 }
 void OnDisable()
 {
     UpdateSelection();
     UnityEditor.Undo.undoRedoPerformed -= OnUndoRedoPerformed;
     PreviewTextureManager.CleanUp();
     Reset();
     ChiselEditGeneratorTool.OnEditSettingsGUI = null;
     ChiselEditGeneratorTool.CurrentEditorName = null;
     Tools.hidden = false;
 }
示例#3
0
        void OnDisable()
        {
            UpdateSelection();
            UnityEditor.Undo.undoRedoPerformed -= OnUndoRedoPerformed;
            PreviewTextureManager.CleanUp();
            Reset();
            Tools.hidden = false;

            ToolManager.activeToolChanged -= OnToolModeChanged;
            ShutdownInspector();
        }
 void OnDisable()
 {
     PreviewTextureManager.CleanUp(); Reset();
 }