# GetShaderChunkCountForPlatform(BuildTarget)

> Gets the default limit on the number of shader variant chunks Unity loads and keeps in memory for the build target.

## Definition

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

```csharp
public static int GetShaderChunkCountForPlatform(BuildTarget buildTarget)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The build target to get the shader chunk count for.

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |

### Remarks

Additional Resources: [PlayerSettings.SetShaderChunkCountForPlatform](/engine/6000.7/script-reference/unityeditor/playersettings/setshaderchunkcountforplatform.md).
