# SetDynamicBatchingForPlatform(BuildTarget, bool)

> Sets dynamic batching for the given BuildTarget. This method is deprecated and will be removed in a future release.

## Definition

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

> **Warning:**
>
> **Deprecated.** SetDynamicBatchingForPlatform is deprecated and will be removed in a future release. #from(6000.5)

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

### Parameters

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