Search Issue Tracker

By Design

Votes

0

Found in

6000.0.41f1

6000.1.0b9

6000.2.0a6

Issue ID

UUM-99118

Regression

No

“Error in Shader Graph Assets/Samples/Shader Graph/17.1.0/Production Ready Shaders/Lit/URPLit.shadergraph: Graph is generating too many variants…” error is thrown after importing Shader Graph Samples

-

Steps to reproduce:
1. Create a new project
2. Import Feature Examples and Production Ready Shaders Sample (Package Manager > Shader Graph > Samples)
3. Observe the Console

Actual results:

 
{code:java}
Error in Shader Graph Assets/Samples/Shader Graph/17.1.0/Production Ready Shaders/Lit/URPLit.shadergraph: Graph is generating too many variants. Either delete Keywords, reduce Keyword variants or increase the Shader Variant Limit in Preferences > Shader Graph.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)
{code}
 

error is thrown
Expected results: No errors or warnings are thrown

{}Reproducible with versions:{}6000.0.5f1, 6000.0.41f1, 6000.1.0b9, 6000.2.0a6
Couldn't test: 2022.3.59f1, 6000.0.4f1 (Due to Production Ready Shaders Sample not existing in the versions)

Tested on (OS): macOS Sequoia 15.3 (Intel)

Notes:

  • High Definition 3D template throws additional warning: “GUID [8ba92e2dd7f884a0f88b98fa2d235fe7] for asset 'Assets/Samples/Shader Graph/17.1.0/Production Ready Shaders/Scenes/HDRPProductionReadyShaders/SkyandFogSettingsProfile.asset' conflicts with: 'Assets/Settings/SkyandFogSettingsProfile.asset' (current owner)

Assigning a new guid.”

  1. Resolution Note:

    The URPLit shader uses more variants than the default settings in the editor support. The way for the user to handle it is to increase the variant limit in their project's settings. There are instructions for how to do this in both the sample scene that comes with the sample and in the sample's documentation. This allows the user to raise their limit if they choose to.

    The only other way to address this would be to run a script when the sample is imported that forces the variant limit to increase in the user's project. We do not want to use this type of heavy-handed alteration to the project and so we decided that the error was acceptable.

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.