Black Image with custom material in "Game" when color is displayed in "Scene"
I have an Image component using source image with alpha (background delivered with Unity), and a custom material made with Shader graph. Parent canvas use Screen Space Overlay.
My big problem is that Image appears black in Game window, but with color on Scene window.
I have a second problem, that can be directly linked to the first, that's why I put it in this same thread: In my shader, last preview does not reflect the final result. It give an inverted result...
This is my first shader, so I have probably done bad things... I try to create a life/mana bar using 3 distinct color (1st: effective life/mana, 2nd: empty life/mana, 3rd: fatigue/malus part that amputate total pool).
I'm using URP 7.3.1 (same problem with 7.1.8 that is marked as verified for 2019.3) on Unity 2019.3.7f1.
Your answer
![](https://koobas.hobune.stream/wayback/20220612231355im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A public list of color in shader. 0 Answers
Changing alpha channel of the tint color on a material 3 Answers
Shader Colors are doubled 0 Answers
RESOLVED: Shader built using Shadergraph's Vertex Color node looks washed out 1 Answer
Colors not rendering correctly, black and white are rendering as the same color??? 0 Answers