# IPreprocessBuildWithReport

> Implement this interface to execute code at the start of the Player build process.

## Definition

* **Type:** Interface
* **Namespace:** [UnityEditor.Build](/engine/6000.7/script-reference/unityeditor/build.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public interface IPreprocessBuildWithReport : IOrderedCallback
```

## Remarks

This interface behaves like [IPreprocessBuildWithContext](/engine/6000.7/script-reference/unityeditor/build/ipreprocessbuildwithcontext.md), but is invoked only for Player builds. Use [IPreprocessBuildWithContext](/engine/6000.7/script-reference/unityeditor/build/ipreprocessbuildwithcontext.md) instead, because it is also invoked for AssetBundle and content directory builds.

For more information about build callbacks, refer to [Use build callbacks](/engine/6000.7/manual/building-and-publishing/build-customize-build-pipeline/build-callbacks.md)

Additional Resources: [IPreprocessBuildWithContext](/engine/6000.7/script-reference/unityeditor/build/ipreprocessbuildwithcontext.md), [BuildPlayerProcessor.PrepareForBuild](/engine/6000.7/script-reference/unityeditor/build/buildplayerprocessor/prepareforbuild.md), [IPostprocessBuildWithReport](/engine/6000.7/script-reference/unityeditor/build/ipostprocessbuildwithreport.md), [BuildPlayerProcessor](/engine/6000.7/script-reference/unityeditor/build/buildplayerprocessor.md), [BuildPipeline.BuildPlayer](/engine/6000.7/script-reference/unityeditor/buildpipeline/buildplayer.md)

## Methods

| Method                                                                                                                 | Description                                                              |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [OnPreprocessBuild](/engine/6000.7/script-reference/unityeditor/build/ipreprocessbuildwithreport/onpreprocessbuild.md) | Implement this method to receive a callback before the build is started. |

## Inheritance

**Inherited Members:**

* [IOrderedCallback.callbackOrder](/engine/6000.7/script-reference/unityeditor/build/iorderedcallback/callbackorder.md)
