private void OnDisable()
        {
            if (Asset != null)
            {
                //if(!EditorApplication.isPlayingOrWillChangePlaymode)
                {
                    SaveAsset();
                }
            }

            m_projectGUI.OnDisable();
            m_assetsGUI.OnDisable();
        }
        private void OnDisable()
        {
            EditorApplication.playModeStateChanged -= OnPlayModeStateChanged;

            if (Asset != null)
            {
                if (m_lastPlayModeStateChange != PlayModeStateChange.ExitingEditMode && m_lastPlayModeStateChange != PlayModeStateChange.ExitingPlayMode)
                {
                    SaveAsset();
                }
            }

            m_projectGUI.OnDisable();
            m_assetsGUI.OnDisable();
        }