void OnDisable() { AssemblyReloadEvents.beforeAssemblyReload -= OnBeforeAssemblyReload; if (m_EventObject != null) { m_EventObject.OnSelectionClosed(GetCurrentSelection()); } Undo.CollapseUndoOperations(m_ModalUndoGroup); EditorPrefs.SetFloat(k_PresetSelectorWidthEditorPref, position.width); EditorPrefs.SetFloat(k_PresetSelectorHeightEditorPref, position.height); }
void OnDisable() { if (m_ListArea != null) { m_StartGridSize.value = m_ListArea.gridSize; } if (m_EventObject != null) { m_EventObject.OnSelectionClosed(GetCurrentSelection()); } Undo.CollapseUndoOperations(m_ModalUndoGroup); }