protected override void OnBodyGUI() { base.OnBodyGUI(); if (EditorBuildSettings.scenes != null && EditorBuildSettings.scenes.Length > 0) { EditorBuildSettings.scenes = null; Log.Warning("只允许构建包含框架主体的场景!如有多场景切换的需求,请将其他场景打入AB包!"); } if (!_isCanBuild) { BuildButtonMaskGUI(); } _onGUIMethod.Invoke(_buildPlayerWindow, null); if (!_isCanBuild) { BuildButtonMaskGUI(); } GUI.enabled = true; if (_isShowBuildABButton) { if (GUI.Button(new Rect(position.width - 422, position.height - 31, 123, 18), "Build AssetBundles")) { AssetBundleBrowserMain.ShowWindow(); } } if (GUI.Button(new Rect(position.width - 294, position.height - 31, 52, 18), "Check")) { CheckResourceMode(); Check(); } if (GUI.Button(new Rect(position.width - 170, 3, 160, 18), "HTFramework Settings...")) { Setter setter = GetWindow <Setter>(); setter.titleContent.image = EditorGUIUtility.IconContent("SettingsIcon").image; setter.titleContent.text = "HTFramework Setter"; setter.minSize = new Vector2(640, 580); setter.Show(); } }
protected override void OnBodyGUI() { base.OnBodyGUI(); if (EditorBuildSettings.scenes != null && EditorBuildSettings.scenes.Length > 0) { EditorBuildSettings.scenes = null; GlobalTools.LogWarning("只允许构建包含框架主体的场景!如有多场景切换的需求,请将其他场景打入AB包!"); } if (!_isCanBuild) { BuildButtonMaskGUI(); } _onGUIMethod.Invoke(_buildPlayerWindow, null); if (!_isCanBuild) { BuildButtonMaskGUI(); } GUI.enabled = true; if (_isShowBuildABButton) { if (GUI.Button(new Rect(position.width - 422, position.height - 31, 123, 18), "Build AssetBundles")) { AssetBundleBrowserMain.ShowWindow(); } } if (GUI.Button(new Rect(position.width - 294, position.height - 31, 52, 18), "Check")) { CheckResourceMode(); Check(); } }
protected override void OnBodyGUI() { base.OnBodyGUI(); if (EditorBuildSettings.scenes != null) { EditorBuildSettings.scenes = null; } if (!_isCanBuild) { BuildButtonMaskGUI(); } _onGUIMethod.Invoke(_buildPlayerWindow, null); if (!_isCanBuild) { BuildButtonMaskGUI(); } GUI.enabled = true; if (_isShowBuildABButton) { if (GUI.Button(new Rect(position.width - 422, position.height - 31, 123, 18), "Build AssetBundles")) { AssetBundleBrowserMain.ShowWindow(); } } if (GUI.Button(new Rect(position.width - 294, position.height - 31, 52, 18), "Check")) { CheckResourceMode(); Check(); } }
static void showPanel() { AssetBundleBrowserMain.ShowWindow(); }