Search Issue Tracker
Won't Fix
Votes
1
Found in
2022.3.38f1
6000.0.11f1
Issue ID
UUM-75808
Regression
No
Shader Graph "use of undeclared identifier" error when using a custom function that references a graph property
How to reproduce:
1. Open the attached “IN-80312“ project
2. From the “Project” window select the “GeneratedFromGraph-Test“ file
3. See the “Imported Object“ section in the Inspector window
Expected result: The shader compiles successfully
Actual result: Error message "use of undeclared identifier" is shown
Reproducible in: 2022.3.38f1, 6000.0.11f1
Could not test with: 2021.3.40f1(Could not resolve package errors)
Reproduced on: Windows 11 Pro
Not reproduced on: No other environment tested
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
- NullReferenceException is thrown when assigning an Object to a custom DebugUI.ObjectField in Rendering Debugger
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note:
Recommend creating and input port and linking the material property via the graph. Custom function nodes are not intended around supporting global access to the entire shader (though many things will work), so we likely won't fix this.