Editor/Builder.cs
/// <summary>
/// Executes build settings from the build settings list sequentially.
/// </summary>
/// <returns>Report of the whole process.</returns>
Executes build settings from the build settings list sequentially.
Executes build settings from the build settings list sequentially .
public string BuildAll()
        {
            deployPath = BuilderHelper.GetDeployPath();
            if (string.IsNullOrEmpty(deployPath)) return "";
            BuildTargetGroup buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
            BuildTarget buildTarget = EditorUserBuildSettings.activeBuildTarget;
            StringBuilder newReport = new StringBuilder($"\n----- Build All process started at {DateTime.Now.ToString()}");
            foreach (var build in buildSettings)
            {
                var rep = build.Build(deployPath);
                newReport.Append($"\n\n{rep}");
            }
            if (keepCurrentBuildTarget)
            {
                var rep = BuilderHelper.SwitchBuildTarget(buildTargetGroup, buildTarget);
                newReport.Append($"\n{rep}");
            }
            newReport.Append($"\n\n-----Build All process was done at {DateTime.Now.ToString()}");
            report = newReport.ToString();
            return report;
        }
public string BuildAll ( ) { deployPath = BuilderHelper . GetDeployPath ( ) ; if ( string . IsNullOrEmpty ( deployPath ) ) return " " ; BuildTargetGroup buildTargetGroup = EditorUserBuildSettings . selectedBuildTargetGroup ; BuildTarget buildTarget = EditorUserBuildSettings . activeBuildTarget ; StringBuilder newReport = new StringBuilder ( $" \n ----- Build All process started at  { DateTime . Now . ToString ( ) } " ) ; foreach ( var build in buildSettings ) { var rep = build . Build ( deployPath ) ; newReport . Append ( $" \n \n { rep } " ) ; } if ( keepCurrentBuildTarget ) { var rep = BuilderHelper . SwitchBuildTarget ( buildTargetGroup , buildTarget ) ; newReport . Append ( $" \n { rep } " ) ; } newReport . Append ( $" \n \n -----Build All process was done at  { DateTime . Now . ToString ( ) } " ) ; report = newReport . ToString ( ) ; return report ; }
Executes build settings from the build settings list sequentially.
Executes build settings from the build settings list sequentially .
Report of the whole process.
Report of the whole process .