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:

  1. Create and open a new project
  2. Install ShaderGraph in (Window → Package Management → Package Manager → Unity Registry)
  3. Create a new ShaderGraph asset in the Project tab
  4. Open the ShaderGraph
  5. Add an Enum to the Blackboard in the ShaderGraph asset
  6. Drag it into the viewport
  7. Select the Enum keyword
  8. In the Graph Inspector, change the Definition to “Dynamic Branch“
  9. Rename any of the entries to anything
  10. 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

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.