# SetOverrideShaderChunkSettingsForPlatform(BuildTarget, bool)

> Enable this to override the default shader variant chunk settings.

## Definition

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

```csharp
public static void SetOverrideShaderChunkSettingsForPlatform(BuildTarget buildTarget, bool value)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.3/script-reference/unityeditor/buildtarget)): The build target to set the override for.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set the value to `true` if you want settings for the `buildTarget` to override the default settings.

### Remarks

If you set `SetOverrideShaderChunkSettingsForPlatform` to `true` for a build target, you can do the following:

* Use [PlayerSettings.SetShaderChunkCountForPlatform](/engine/6000.3/script-reference/unityeditor/playersettings/setshaderchunkcountforplatform.md) to override [PlayerSettings.SetDefaultShaderChunkCount](/engine/6000.3/script-reference/unityeditor/playersettings/setdefaultshaderchunkcount.md).
* Use [PlayerSettings.SetShaderChunkSizeInMBForPlatform](/engine/6000.3/script-reference/unityeditor/playersettings/setshaderchunksizeinmbforplatform.md) to override [PlayerSettings.SetDefaultShaderChunkSizeInMB](/engine/6000.3/script-reference/unityeditor/playersettings/setdefaultshaderchunksizeinmb.md).

Additional Resources: [PlayerSettings.GetOverrideShaderChunkSettingsForPlatform](/engine/6000.3/script-reference/unityeditor/playersettings/getoverrideshaderchunksettingsforplatform.md).
