How to set an unique color to an image ?


I would like to force one color on an UI Image component (the GO has no Texture2D component), as in this example.
Changing the “Color” variable of the Image will only change the color partially unless i set full black.


Have you tried something like this?

image.GetComponent<Image>().color =;

From: How to change the color of an image with script? - Questions & Answers - Unity Discussions