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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.