|
1 | 1 | # Shader Graph Preferences
|
2 | 2 |
|
3 |
| -To access the Shader Graph Project-wide settings, click **Edit** > **Preferences**, and then select **Shader Graph**. |
| 3 | +Use the Shader Graph preferences to define shader graph settings for your system. To access the Shader Graph system preferences, do the following: |
| 4 | + |
| 5 | +1. From the main menu select **Edit** > **Preferences** (macOS: **Unity** > **Settings**). The **Preferences** window is displayed. |
| 6 | +2. Select **Shader Graph**. |
4 | 7 |
|
5 | 8 | ## Settings
|
6 | 9 |
|
7 |
| -| Name | Description | |
8 |
| -|:------- |:----------- | |
9 |
| -|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](https://docs.unity3d.com/Manual/SL-MultipleProgramVariants.html). | |
10 |
| -| 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. | |
11 |
| -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. | |
| 10 | +| Name | Description | |
| 11 | +|:--------------------------|:----------------------------------------| |
| 12 | +| **Preview Variant Limit** | Set the maximum number of variants allowed in local projects. This is a local version of the **Shader Variant Limit** in the project settings. If your graph exceeds this maximum value, Unity returns the following error:</br> _Validation: Graph is generating too many variants. Either delete Keywords, reduce Keyword variants or increase the **Shader Variant Limit** in Preferences > Shader Graph._ </br>For more information about shader variants, refer to [Making multiple shader program variants](https://docs.unity3d.com/Manual/SL-MultipleProgramVariants.html). For more information about the Shader Variant Limit, refer to [Shader graph project settings](Shader-Graph-Project-Settings.md)| |
| 13 | +| **Automatically Add and Remove Block Nodes** | Automatically add [Block nodes](Block-Node.md) to, or remove them from, the [Master Stack](Master-Stack.md) as needed. If you select this option, any [Block nodes](Block-Node.md) that your Shader graph needs are added to the [Master Stack](Master-Stack.md) automatically. Any incompatible [Block nodes](Block-Node.md) that have no incoming connections will be removed from the [Master Stack](Master-Stack.md). If you don't select this option, no [Block nodes](Block-Node.md) are added to, or removed from, the [Master Stack](Master-Stack.md) automatically. | |
| 14 | +| **Enable Deprecated Nodes** | Disable warnings for deprecated nodes and properties. If you select this option, Shader Graph doesn't display warnings if your graph contains deprecated nodes or properties. If you don't select this option, Shader Graph displays warnings for deprecated nodes and properties, and any new nodes and properties you create use the latest version. | |
| 15 | +| **Zoom Step Size** | Control how much the camera in Shader Graph zooms each time you roll the mouse wheel. This makes it easier to control the difference in zoom speed between the touchpad and mouse. A touchpad simulates hundreds of steps, which causes very fast zooms, whereas a mouse wheel steps once with each click. | |
| 16 | + |
| 17 | +## Additional resources |
| 18 | + |
| 19 | +- [Making multiple shader program variants](https://docs.unity3d.com/Manual/SL-MultipleProgramVariants.html) |
| 20 | +- [Master Stack](Master-Stack.md) |
| 21 | +- [Shader graph project settings](Shader-Graph-Project-Settings.md) |
0 commit comments