Search Issue Tracker
Fixed
Fixed in 6000.2.8f1, 6000.3.0b6, 6000.4.0a2
Votes
0
Found in
6000.0.57f1
6000.2.4f1
6000.3.0b1
6000.4.0a1
Issue ID
UUM-116688
Regression
No
VFX Graph compilation fails when Custom HLSL starts with multiple "//" comment lines
Reproduction steps:
1. Open the attached “IN-114004.zip” project
2. From the Project window, double-click on the “BuggeddSystem.vfx” asset
3. In the Visual Effect Graph window, click the Save icon
4. Observe the Console
Expected result: No errors
Actual result: “Shader error in '[BuggeddSystem] [Simple Loop] Initialize Particles': syntax error: unexpected token ')' at kernel CSMain at BuggeddSystem.vfx(140) (on d3d11)” error
Reproducible with: 2023.3.0a2, 6000.0.57f1, 6000.2.4f1, 6000.3.0b1
Reproducible on: Windows 11
Not reproducible on: no other environments tested
Notes:
- Issue does not reproduce with multi‑line /* */ comments or triple‑slash /// comments, only with double‑slash // comments
- The generated code gets an extra parenthesis and line break at the end of the function declaration, which makes the code not compile at all
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
- Inconsistent “Favorites” icon highlight in Unity Hub
- "Could not connect project. Try again" Hub error is not informative/does not inform the user with the reason why it failed when connecting a project to cloud with a name that's too long
Add comment