Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.36f1
Issue ID
UUM-74845
Regression
No
Shader error in 'Shader Graphs/Master': redefinition of '_Time' is thrown after changing the Material Dropdown
How to reproduce:
1. Create a new High Definition 3D Template Project
2. Create a new Shader Graph (Right-click in the Project Window -> Create -> Shader Graph -> HDRP -> Lit Shader Graph)
3. Open the newly created Shader Graph
4. Click the '+' on the left side of the Shader Graph window and add a float variable and call it "Time"
5. In the Graph Inspector (on the right), click "Graph Settings"
6. Change the Material Dropdown to "Lit"
7. Observe the Console
Expected result: No Errors or Warnings are being thrown
Actual Result: Shader error in 'Shader Graphs/Master': redefinition of '_Time' at /(258) (on metal) is being thrown
Reproducible with: 2022.3.36f1
Reproduced on: macOS Sonoma 14.5 (M1)
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
Our error messaging here could be improved, but `_Time` is used internally by Unity. Naming a material property `Time` isn't strictly illegal in the UI/UX, but it would result in a default reference name `_Time`, which is not allowed.
We plan revisiting how we handle reference name collisions in the future, but for now we recommend using more distinct reference names for material properties.