Search Issue Tracker
Active
Under Consideration for 6000.2.X, 6000.3.X, 6000.4.X
Votes
0
Found in
6000.2.11f1
6000.3.0b9
6000.4.0a4
Issue ID
UUM-126027
Regression
No
ShaderGraph fails to compile the Dynamic Branch Enum when the Enum entry names are edited
How to reproduce:
- Create and open a new project
- Install ShaderGraph in (Window → Package Management → Package Manager → Unity Registry)
- Create a new ShaderGraph asset in the Project tab
- Open the ShaderGraph
- Add an Enum to the Blackboard in the ShaderGraph asset
- Drag it into the viewport
- Select the Enum keyword
- In the Graph Inspector, change the Definition to “Dynamic Branch“
- Rename any of the entries to anything
- Observe the ShaderGraph Viewport and the Console
Expected result: The node in the Viewport is rendered with no errors, and no warnings are thrown
Actual result: The node in the Viewport has a “syntax error: unexpected token ';' at line 187” error, and warnings in the Console are thrown
Reproducible in: 6000.2.0a10, 6000.2.11f1, 6000.3.0b9, 6000.4.0a4
Could not test in: 6000.0.62f1, 6000.1.0a10 (No Dynamic Branch Definition)
Workaround: Change the name of the entry to any other string
Note: Saving the ShaderGraph when it has the error throws a “Shader error in ‘Shader Graphs/hidden/preview/Enum_2be7c86c99624c9dbbf36af16b492ec7': syntax error: unexpected token ';' at /(179) (on d3d11)“ error
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Add comment