Search Issue Tracker

Fixed

Fixed in 2021.3.43f1, 2022.3.43f1, 6000.0.16f1

Votes

0

Found in

2021.3.40f1

2022.3.38f1

6000.0.11f1

Issue ID

UUM-76472

Regression

No

Shader Graph Preview Variant Limit can be set to a negative value

--

-

How to reproduce:
1. Create a new URP project
2. Go to User Preferences -> Shader Graph 
3. Try set the Preview Variant Limit to a negative value

Expected results: It is not possible to set Preview Variant Limit to a negative number
Actual results: It is possible to set the Preview Variant Limit to a negative number which results in errors in the Console

Reproducible with: 2021.3.40f1, 2022.3.38f1, 6000.0.11f1

Reproducible on: macOS Sonoma 14.5
Not reproducible on: No other environment tested

Full error: Error in Shader Graph Assets/New Shader Graph.shadergraph: Graph is generating too many variants. Either delete Keywords, reduce Keyword variants or increase the Shader Variant Limit in Preferences > Shader Graph.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:384)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.