public Params(BuildTargetGroup b, string name)
            {
                this.name = name;

                // エディタのデフォルト値に合わせる、ちな自分環境でDebugは動いた試しがない
                if (b == BuildTargetGroup.WebGL)
                {
                    il2CppCompilerConfiguration = Il2CppCompilerConfiguration.Release;
                }

                buildTarget = UnityEditorEditorUserBuildSettingsUtils.CalculateSelectedBuildTarget(b);
            }
Beispiel #2
0
        /// <summary>
        /// 確認チェック付きのSwitchプラットフォーム
        /// </summary>
        /// <param name="group"></param>
        /// <returns></returns>
        public static bool SwitchActiveBuildTarget(BuildTargetGroup group)
        {
            var target = UnityEditorEditorUserBuildSettingsUtils.CalculateSelectedBuildTarget(group);

            return(SwitchActiveBuildTarget(group, target));
        }