Пример #1
0
        void OnDestroy()
        {
            Inst = null;

            // 场景主界面
            if (m_sceneWindow != null)
            {
                m_sceneWindow.CloseWindow();
            }
            m_sceneWindow = null;

            // 事件关闭
            SceneView.onSceneGUIDelegate   -= OnSceneGUI;
            EditorSceneManager.sceneOpened -= OnSceneOpened;
        }
Пример #2
0
 public static void OpenCubeWorldEditorWindow()
 {
     Inst = GetWindow <CubeWorldEditorWindow>(false, "");
     Inst.titleContent.text = "Cube World Editor";
     Inst.minSize           = new Vector2(SettingManager.Inst.Setting.EditorWidth, 100);
 }