Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
12.0.0
Issue ID
1379744
Regression
Yes
[URP] uGUI Material colour is different in the Game view when applying a custom Shader
How to reproduce:
1. Open the attached "case_1379744" project
2. Open the "Repro" Scene
3. Observe the Game view
Expected result: The user's created health bar Material is the same as in the Scene view
Actual result: The health bar in the Game view is completely black. Changing the Shader attributes doesn't affect the health bar Material
Reproducible with: 12.0.0 (2021.2.0a16), 12.1.2 (2021.2.6f1), 13.1.1 (2022.1.0a16)
Not reproducible with: 10.7.0 (2020.3.24f1), 12.0.0 (2021.2.0a15)
Couldn't test with: 7.7.1 (2019.4.33f1), 12.0.0 (2021.2.0a17 - 2021.2.0a21) (the "Retro" ShaderGraph import is failed due to KeyNotFoundException), 13.1.3 (2022.1.0b1 - 2022.1.0b2) (Graphics.CopyTexture error is thrown, the Game view is not available)
Note:
- Not reproducible with TextMeshPro, UI, FX, GUI, UI Additive, UI Configurable Shaders
- Reproducible with HD RP
- Not reproducible with BiRP
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
Unfortunately, Shader Graph does not support UI renderers (although this is on our roadmap to support here: https://portal.productboard.com/unity/1-unity-platform-rendering-visual-effects/c/50-ui-integration-with-shader-graph). While some versions happened to function with SG materials in the canvas, it has not ever been given official support. You may be able to get away with doing the canvas renderer in worldspace or screen space - camera, but that will vary depending on usage.