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
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
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.