I am using unity 2019.2 with Android.
When the build succeeds, `OnPostprocessBuild(BuildReport report)` gets called, but not if it is canceled.
Is it supposed to? Are there other means?
public class PostProcessor : IPostprocessBuildWithReport
{
public int callbackOrder => 0;
public void OnPostprocessBuild(BuildReport report)
{
//do some stuff
if (report.summary.result != BuildResult.Succeeded) { return; }
#region Platform-specific configurations
switch (report.summary.platform)
{
//do some stuff
}
#endregion
}
}
↧