diff --git a/com.unity.shadergraph/Documentation~/Shader-Graph-Preferences.md b/com.unity.shadergraph/Documentation~/Shader-Graph-Preferences.md new file mode 100644 index 00000000000..4e8fa08b53d --- /dev/null +++ b/com.unity.shadergraph/Documentation~/Shader-Graph-Preferences.md @@ -0,0 +1,9 @@ +# 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](https://docs.unity3d.com/Manual/SL-MultipleProgramVariants.html). | diff --git a/com.unity.shadergraph/Documentation~/TableOfContents.md b/com.unity.shadergraph/Documentation~/TableOfContents.md index 19c3f682823..224005303b1 100644 --- a/com.unity.shadergraph/Documentation~/TableOfContents.md +++ b/com.unity.shadergraph/Documentation~/TableOfContents.md @@ -11,6 +11,7 @@ * [Color Modes](Color-Modes) * [Precision Modes](Precision-Modes) * [Custom Function Node](Custom-Function-Node) + * [Shader Graph Preferences](Shader-Graph-Preferences) * [Samples](ShaderGraph-Samples.md) * Inside Shader Graph * [Shader Graph Asset](Shader-Graph-Asset)