Beispiel #1
0
        //private bool mBuilded = false;

        private void OnDestroy()
        {
            VFSBuilderIMGUI.wnd = null;

            #region 保存编辑器选项
            EditorPrefs.SetBool(SaveKey_StrictMode, cur_strictMode);
            EditorPrefs.SetBool(SaveKey_CopyToStreamingAssets, cur_copyToStreamingAssetFolder);
            EditorPrefs.SetBool(SaveKey_ClearABAfter, cur_clearAllABSignAfterFinish);
            EditorPrefs.SetBool(SaveKey_ClearABBefore, cur_clearAllABSign);
            EditorPrefs.SetBool(SaveKey_ClearOutputFolder, cur_ClearOutputFolder);
            EditorPrefs.SetBool(SaveKey_ForceRebuild, cur_ForceRebuild);
            #endregion
        }
Beispiel #2
0
 //[MenuItem("TinaX/VFS/VFS Dashboard")]
 public static void OpenUI()
 {
     if (wnd == null)
     {
         wnd = GetWindow <VFSBuilderIMGUI>();
         wnd.titleContent = new GUIContent(VFSBuilderI18N.WindowTitle);
         wnd.minSize      = new Vector2(394, 599);
         wnd.maxSize      = new Vector2(395, 600);
         Rect pos = wnd.position;
         pos.width    = 395;
         pos.height   = 600;
         wnd.position = pos;
     }
     else
     {
         wnd.Focus();
     }
 }