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
- Editor colors appear darkened out when HDR Display Output is enabled
- Default Mesh Renderer Material cannot be found in the Select Material window after removing it from the GameObject
- UI Builder button text disappears in the GameView when the radius of the button is increased in a specific project
- Paste Settings functionality does not save the pasted settings in volume profile when reloading the project
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
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.