Beispiel #1
0
 private static void OpenWindow()
 {
     if (EditorApplication.isCompiling)
     {
         EditorUtility.DisplayDialog("警告", "请等待代码编译完成!", "确定");
         return;
     }
     if (windows != null)
     {
         windows.Close();
     }
     windows = GetWindow <AssetPackager> ("资源打包器", false);
     windows.titleContent = new GUIContent("资源打包器");
     windows.Start();
     windows.Show();
 }