Search Issue Tracker
Fixed
Fixed in 12.1.6, 14.0.8, 15.0.6, 16.0.2
Votes
0
Found in [Package]
12.1.11
14.0.7
15.0.5
16.0.1
Issue ID
SGB-581
Regression
Yes
“Validation: Source file does not exist“ error appears in the Custom Function node if adding output before setting type to “string”
How to reproduce:
1. Open the user’s attached “Shader Graph BI Tutorial.zip” project
2. Open any Shader Graph
3. Create a “Custom Function” Node
4. In the Graph Inspector, add an Output
5. Change the name
6. Change the Type to “String”
7. Add “New = 1;” to “Body”
8. Observe the Node
Expected result: No error
Actual result: “Validation: Source file does not exist. A valid .hlsl, .cginc, or .cg file must be referenced at line 0“ error appears
Reproducible with: 12.0.0 (2021.2.0a16), 12.1.9 (2021.2.19f1), 12.1.11 (2021.3.26f1), 14.0.7 (2022.2.21f1), 15.0.5 (2023.1.0b18), 16.0.1 (2023.2.0a16)
Not reproducible with: 10.10.1 (2020.3.48f1), 12.0.0 (2021.2.0a15)
Reproduced on: macOS 13.2.1 (Intel)
Note: Not reproducible if setting type to “string” before adding output
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
- Graphics Compositor breaks Unity rendering when the "Output Camera" is changed to a scene Camera and one Camera SubLayer is active
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
Add comment