Search Issue Tracker
Fixed in 12.0.0
Votes
1
Found in [Package]
12.0.0
Issue ID
1324528
Regression
Yes
Unable to set Custom Function Node File Source property in ShaderGraph due to .hlsl files being imported as Shader Include type
How to reproduce:
1. Open the user's attached "sg-cfn-test-2021.2a10.zip" project
2. Open the "CustomFunctionShaderGraph" Shader Graph from the Project window
3. Add "Custom Function" Node in the Shader Graph window
4. Select the "Custom Function" Node
5. Observe the "Source" property's expected file type
Expected result: "Shader Include" files can be referenced in the "Source" property
Actual result: Only "Text Asset" files can be referenced in the "Source" property
Reproducible with: 12.0.0 (2021.2.0a8, 2021.2.0a11)
Not reproducible with: 12.0.0 (2021.2.0a7), 11.0.0 (2021.1.2f1), 10.4.0 (2020.3.3f1), 7.5.3 (2019.4.23f1)
Note:
- .hlsl and .cginc files are imported as "Shader Include" files, that can't be referenced in the "Source" property of the "Custom Function" Node
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 12.0.0):
Fixed in 2021.2.0a13