/// <summary> /// Create a new instance of <see cref="BuildStepResult"/> from a <see cref="UnityEditor.Build.Reporting.BuildReport"/>. /// </summary> /// <param name="step">The <see cref="Build.BuildStep"/> that was executed.</param> /// <param name="report">The report that was generated.</param> public BuildStepResult(BuildStep step, UnityEditor.Build.Reporting.BuildReport report) { Succeeded = report.summary.result == UnityEditor.Build.Reporting.BuildResult.Succeeded; Message = Failed ? report.summary.ToString() : null; BuildStep = step; }