# SetDynamicBatchingForPlatform(BuildTarget, bool)

> Sets dynamic batching for the given BuildTarget.

## Definition

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

```csharp
public static void SetDynamicBatchingForPlatform(BuildTarget platform, bool enable)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.3/script-reference/unityeditor/buildtarget)): BuildTarget to set dynamic batching for.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Should dynamic batching be enabled.
