Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

IPreprocessBuildWithReport

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 at the start of the Player build process.

This interface behaves like IPreprocessBuildWithContext, but is invoked only for Player builds. Use IPreprocessBuildWithContext instead, because it is also invoked for AssetBundle and content directory builds.

For more information about build callbacks, refer to Use build callbacks

Additional resources: IPreprocessBuildWithContext, BuildPlayerProcessor.PrepareForBuild, IPostprocessBuildWithReport, BuildPlayerProcessor, BuildPipeline.BuildPlayer

Public Methods

Method Description
OnPreprocessBuildImplement this method to receive a callback before the build is started.