///////////////////////////////////////// public static void DrawGUI() { //E.Load(); P.Load(); var targetGroupList = PlatformUtils.GetSupportList(); ScopeIsCompile.Begin(); ScopeVertical.Begin(); HEditorGUILayout.HeaderTitle("Platform"); GUILayout.Space(8); foreach (var t in targetGroupList) { ScopeChange.Begin(); var _b = HEditorGUILayout.ToggleBox(P.GetPlatform(t).enable, t.Icon(), t.GetName()); if (ScopeChange.End()) { P.GetPlatform(t).enable = _b; P.Save(); BuildAssistWindow.ChangeActiveTarget(); } } ScopeVertical.End(); ScopeIsCompile.End(); }
public static void DrawGUI() { P.Load(); PB.Load(); Styles.Init(); DrawContentConfig(); if (s_changed) { P.Save(); PB.Save(); BuildAssistWindow.Repaint(); } }
///////////////////////////////////////// public static void ExecuteBuildPackage() { EditorApplication.delayCall += BuildPackage; B.s_buildProcess = true; BuildAssistWindow.Repaint(); void BuildPackage() { using (new BuildProcessScope()) { P.SetBuildParamIndex(); try { var flag = 0x01; if (P.GetCurrentParams().buildAssetBundlesTogether) { flag |= 0x02; } BuildCommands.Build(flag); } catch (Exception e) { Debug.LogException(e); } } }; }
//public void Reinit() => Init(); public void Init() { s_window = this; s_window.SetTitle(new GUIContent(Package.nameNicify, EditorIcon.buildsettings_psm_small)); m_Drawer_ScenesInBuild = new GUI_BuildScenes(); m_Drawer_BuildPlatforms = new GUI_BuildProperty(); P.Load(); Utils.s_currentPlatform = null; m_supportBuildTarget = PlatformUtils.GetSupportList(); //_enableAssetBundle = EditorHelper.HasMenuItem( Window_AssetBundle_Browser ); _enableBuildReport = EditorHelper.HasMenuItem(Window_Show_Build_Report); MakeDrawBuildTarget(); OnFocus(); Utils.SelectItemUpdate(); ChangeActiveTarget(); m_Drawer_BuildPlatforms.SelectPlatform(Utils.s_currentPlatform, m_buildPlatformDrawer); }
public void Draw(BuildAssistWindow parent) { var currentParams = P.GetCurrentParams(); }