Search Issue Tracker
Fix In Review for 6000.5.0a7
Fix In Review for 6000.4.X
Under Consideration for 6000.0.X, 6000.3.X, 6000.4.X, 6000.5.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
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
- Frame Debugger is not disabled when switching Scenes if the Frame Debugger window is not open during the transition
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
- PhysicsRaycaster ray length is incorrect when casting from rotated Camera
Resolution Note (fix version 6000.5.0a7):
Fixed in 6000.5.0a7
Resolution Note (fix version 6000.4):
Fixed in 6000.5.0a7