Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

IPostprocessBuildWithReport

interface in UnityEditor.Build


Implements interfaces:IOrderedCallback

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Implement this interface to execute code immediately after the Player build process is completed.

This interface is replaced by IPostprocessBuildWithContext, which works for AssetBundle and ContentDirectory builds as well. This is useful for tasks that need to be performed as the last step of building, such as cleaning up assets, generating analytics or reports, or customizing build outputs.

As a final step of a Player build, Unity uses the IOrderedCallback.callbackOrder property on each implementation to determine the order in which to invoke the callbacks.

Additional resources: IPreprocessBuildWithReport, BuildPipeline.BuildPlayer

Public Methods

Method Description
OnPostprocessBuildImplement this function to receive a callback after the build is complete.