# SetStaticBatchingForPlatform(BuildTarget, bool)

> Sets static batching for the given BuildTarget.

## Definition

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

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

### Parameters

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