void OnDisable() { if (m_ObjectSelectorReceiver != null) { m_ObjectSelectorReceiver.OnSelectionClosed(GetCurrentObject()); } if (m_OnObjectSelectorClosed != null) { m_OnObjectSelectorClosed(GetCurrentObject()); } SendEvent(ObjectSelectorClosedCommand, false); if (m_ListArea != null) { m_StartGridSize.value = m_ListArea.gridSize; } Undo.CollapseUndoOperations(m_ModalUndoGroup); if (s_SharedObjectSelector == this) { s_SharedObjectSelector = null; } if (m_EditorCache != null) { m_EditorCache.Dispose(); } AssetPreview.ClearTemporaryAssetPreviews(); }
void NotifySelectorClosed(bool exitGUI) { var currentObject = GetCurrentObject(); if (m_ObjectSelectorReceiver != null) { m_ObjectSelectorReceiver.OnSelectionClosed(currentObject); } m_OnObjectSelectorClosed?.Invoke(currentObject); SendEvent(ObjectSelectorClosedCommand, exitGUI); }
void NotifySelectorClosed(bool exitGUI) { var currentObject = GetCurrentObject(); if (m_ObjectSelectorReceiver != null) { m_ObjectSelectorReceiver.OnSelectionClosed(currentObject); } m_OnObjectSelectorClosed?.Invoke(currentObject); SendEvent(ObjectSelectorClosedCommand, exitGUI); Undo.CollapseUndoOperations(m_ModalUndoGroup); }