# PrepareForBuild(BuildPlayerContext)

> Implement this function to receive a callback before a player build starts.

## Definition

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

```csharp
public abstract void PrepareForBuild(BuildPlayerContext buildPlayerContext)
```

### Parameters

**** (\[BuildPlayerContext]\(/engine/6000.0/script-reference/unityeditor/build/buildplayercontext)): A context tied to the scheduled player build.
