SetOverrideShaderChunkSettingsForPlatform(BuildTarget, bool)
Enable this to override the default shader variant chunk settings.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void SetOverrideShaderChunkSettingsForPlatform(BuildTarget buildTarget, bool value)
Parameters
The build target to set the override for.
Set the value to if you want settings for the to override the default settings.
truebuildTargetRemarks
If you set to for a build target, you can do the following:
SetOverrideShaderChunkSettingsForPlatformtrue- Use PlayerSettings.SetShaderChunkCountForPlatform to override PlayerSettings.SetDefaultShaderChunkCount.
- Use PlayerSettings.SetShaderChunkSizeInMBForPlatform to override PlayerSettings.SetDefaultShaderChunkSizeInMB.
Additional Resources: PlayerSettings.GetOverrideShaderChunkSettingsForPlatform.