Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
Votes
0
Found in
2021.3.8f1
2022.1.13f1
2022.2.0b4
2023.1.0a6
Issue ID
UUM-13636
Regression
No
Uniform variables work like global variables when in a custom function
To reproduce:
1. Open the project “500_shaderbug”
2. Enter Play mode
Expected result: GameObjects “SuzaneHlslInflation”, “SuzaneShaderGraph VariantInflation” infliate and “SuzaneHlslShrink”, “SuzaneShaderGraph VariantShrink” shrink
Actual result: GameObject “SuzaneShaderGraph VariantInflation” infliates and “SuzaneHlslInflation”, “SuzaneHlslShrink”, “SuzaneShaderGraph VariantShrink” shrink
Reproducible with: 2021.3.8f1, 2022.1.13f1, 2022.2.0b4, 2023.1.0a6
Could not test with: 2020.3.38f1 (Package errors)
Reproduced on: macOS Monterey 12.5.1 (Intel)
User’s note: I wrote a uniform variable in the hlsl. I set a value to the variable from C#. All meshes were affected. If I do not use a custom function (shader graph only), works well
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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Resolution Note:
User is attempting to use an unsupported workflow. If the user is attempting to manually add a uniform instead of adding the property to the blackboard, therefore the uniform is not part of the per material buffer, and will be global.
Resolution Note (2023.1.X):
User is attempting to use an unsupported workflow. If the user is attempting to manually add a uniform instead of adding the property to the blackboard, therefore the uniform is not part of the per material buffer, and will be global.