mathe/Library/PackageCache/com.unity.shadergraph@14.0.8/Documentation~/Shader-Graph-Preferences.md
2024-09-20 20:30:10 +02:00

1.4 KiB

Shader Graph Preferences

To access the Shader Graph Project-wide settings, click Edit > Preferences, and then select Shader Graph.

Settings

Name Description
Shader Variant Limit Enter a value to set the maximum number of shader variants. If your graph exceeds this maximum value, Unity throws the following error: Validation: Graph is generating too many variants. Either delete Keywords, reduce Keyword variants or increase the Shader Variant Limit in Preferences > Shader Graph. For more information about shader variants, see Making multiple shader program variants.
Automatically Add or Remove Block Nodes Toggle either on or off. If this option is on, when changing Graph Settings any needed Block nodes will be added to the Master Stack. Any incompatible Block nodes that have no incoming connections will be removed from the Master Stack. If this option is off, no Block nodes will be added to or removed from the Master Stack.
Enable Deprecated Nodes Enable this setting to turn off warnings for deprecated nodes and properties, which also allows you to create older versions of nodes and properties. If you don't enable this setting, Shader Graph displays warnings for deprecated nodes and properties, and any new nodes and properties you create use the latest version.