IBuildStep execution result report data
Esempio n. 1
0
 static void OnStepCompleted(BuildStepResultArgs stepExecuteResultArgs)
 {
     if (stepExecuteResultArgs.IsSuccess)
     {
         ReleaseCurrentAndRunNextStep();
     }
     else
     {
         OnStepFailed(stepExecuteResultArgs);
     }
 }
        void BuildProject()
        {
            BuildReport report = BuildPipeline.BuildPlayer(m_BuildContext.BuildPlayerOptions);

            BuildSummary summary = report.summary;

            BuildStepResultArgs resultArgs = new BuildStepResultArgs
            {
                Step          = this,
                IsSuccess     = summary.result == BuildResult.Succeeded,
                ResultMessage = "UnityPlayerBuildStep finished with: " + summary.result,
            };

            m_OnCompleteCallback?.Invoke(resultArgs);
            m_OnCompleteCallback = null;
        }
Esempio n. 3
0
 static void OnStepFailed(BuildStepResultArgs stepExecuteResultArgs)
 {
     Debug.LogError("Build Executor : " + stepExecuteResultArgs.ResultMessage);
 }