Exemplo n.º 1
0
        public static void ShowWindow()
        {
            if (Application.isPlaying || EditorApplication.isPlaying || EditorApplication.isPaused)
            {
                EditorUtility.DisplayDialog("错误", "游戏正在运行或者暂停中, 请不要操作!", "确定");
                return;
            }

            if (EditorApplication.isCompiling)
            {
                EditorUtility.DisplayDialog("错误", "游戏脚本正在编译, 请不要操作!", "确定");
                return;
            }
            mWindow = GetWindow <ProjectBuildWindow>();
            mWindow.titleContent = new GUIContent("Quick Buildflow");
            mWindow.position     = GUIHelper.GetEditorWindowRect().AlignCenter(900, 700);
        }
        public static void OpenProjectBuildWindow()
        {
#if ODIN_INSPECTOR
            ProjectBuildWindow.ShowWindow();
#endif
        }