# RegisterBuildPlayerHandler(Action<BuildPlayerOptions>)

> Register a delegate to intercept or override the build process executed with the "Build" and "Build and Run" buttons. Registering a null value will restore default behavior, which is the equivalent of calling BuildPlayerWindow.DefaultBuildMethods.BuildPlayer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void RegisterBuildPlayerHandler(Action<BuildPlayerOptions> func)
```

### Parameters

**** (\[Action\<BuildPlayerOptions>]\(https\://learn.microsoft.com/dotnet/api/system.action)): Delegate Action that takes a BuildPlayerOptions parameter.
