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
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
Add comment