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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.