コード例 #1
0
        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();
        }
コード例 #2
0
        void NotifySelectorClosed(bool exitGUI)
        {
            var currentObject = GetCurrentObject();

            if (m_ObjectSelectorReceiver != null)
            {
                m_ObjectSelectorReceiver.OnSelectionClosed(currentObject);
            }

            m_OnObjectSelectorClosed?.Invoke(currentObject);

            SendEvent(ObjectSelectorClosedCommand, exitGUI);
        }
コード例 #3
0
        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);
        }