Пример #1
0
        public void     ConvertToDock()
        {
            this.Close();

            NGHubWindow window = ScriptableObject.CreateInstance <NGHubWindow>();

            window.SetDockMode(true);
            window.ShowPopup();
        }
Пример #2
0
        public static void      OpenAsDock()
        {
            NGHubWindow[] editors = Resources.FindObjectsOfTypeAll <NGHubWindow>();

            for (int i = 0; i < editors.Length; i++)
            {
                if (editors[i].dockedAsMenu == true)
                {
                    return;
                }
                editors[i].Close();
            }

            NGHubWindow window = ScriptableObject.CreateInstance <NGHubWindow>();

            window.SetDockMode(true);
            window.ShowPopup();
        }