Esempio n. 1
0
        /////////////////////////////////////////

        static void Batch()
        {
            Log("Batch");
            P.Load();

            Log($"{string.Join( "; ", EditorUserBuildSettings.activeScriptCompilationDefines )}");

            Log($"activeBuildTargetGroup: {UnityEditorEditorUserBuildSettings.activeBuildTargetGroup.ToString()}");
            Log($"activeBuildTarget: {EditorUserBuildSettings.activeBuildTarget.ToString()}");

            var currentParams = P.GetActiveTargetParams();

            Log($"{currentParams.buildTarget}");

            foreach (var arg in Environment.GetCommandLineArgs())
            {
                if (arg.Contains("-buildIndex"))
                {
                    int index = int.Parse(arg.Split(':')[1]);
                    P.i.buildParamIndex = index;
                    break;
                }
            }
            Build(0x01);
        }
Esempio n. 2
0
        /////////////////////////////////////////

        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();
        }
Esempio n. 3
0
        public static void DrawGUI()
        {
            P.Load();
            PB.Load();
            Styles.Init();

            DrawContentConfig();

            if (s_changed)
            {
                P.Save();
                PB.Save();
                BuildAssistWindow.Repaint();
            }
        }
Esempio n. 4
0
        //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);
        }