# GetShaderChunkSizeInMBForPlatform(BuildTarget)

> Gets the default size for compressed shader variant chunks for the build target.

## Definition

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

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

### Parameters

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

### Returns

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

### Remarks

Additional Resources: [PlayerSettings.SetDefaultShaderChunkSizeInMB](/engine/6000.7/script-reference/unityeditor/playersettings/setdefaultshaderchunksizeinmb.md), [PlayerSettings.SetShaderChunkSizeInMBForPlatform](/engine/6000.7/script-reference/unityeditor/playersettings/setshaderchunksizeinmbforplatform.md).
