Search Issue Tracker
Fixed in 12.0.0
Fixed in 11.0.0
Votes
0
Found in [Package]
12.0.0
Issue ID
1343528
Regression
No
[Shader Graph] "Graph is generating too many variants" error is thrown when using SubGraphs with Keywords
"Graph is generating too many variants" error is thrown when using SubGraphs with Keywords and specified Shader Variant Limit is not reached
How to reproduce:
1. Open the user's attached project
2. In the Project window, open the maingraph asset
3. Observe its graph and Console window
Expected result: there are no errors
Actual result: Shader Graph and Console windows display errors
Reproducible with: 7.3.1 - 7.6.0 (2019.4.28f1), 10.3.1 - 10.5.0 (2020.3.12f1), 12.0.0 (2021.2.0a10, 2021.2.0a21)
Not reproducible with: 8.1.0, 11.0.0 (2021.1.0a1, 2021.1.11f1)
Could not test with: 2018.4 (URP is not available), 2021.2.0a1, 2021.2.0a9 (other errors)
Error that appears:
Error in Shader Graph New Shader Graph:Graph is generating too many variants. Either delete Keywords, reduce Keyword variants or increase the Shader Variant Limit in Preferences > Shader Graph.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- EditorGUILayout.PropertyField foldout icon inside Vertical Layout Group has an incorrect indent when used with OnInspectorGUI()
- [Android] [iOS] "NullReferenceException: Object reference not set to an instance of an object" throws when entering the Play Mode/opening the application
- The Player freezes on load when building Web platform
- Animator "Conditions" tab breaks when the only Parameter is deleted and another one is created
- "Shader error in 'Universal Render Pipeline/Lit': maximum ps_5_0 sampler register index (16) exceeded" error thrown after a build is completed when the "LOD Cross Fade" parameter is enabled
Resolution Note (fix version 12.0.0):
Fixed in: 2022.1.0a6 (Shader Graph 12.0.0)
Resolution Note (fix version 12.0.0):
Fixed in: 2021.2.0b7 (ShaderGraph 12.0.0)
Resolution Note (fix version 11.0.0):
Fixed in: 2021.1.17f1 (ShaderGraph 11.0.0)