- Home /
Question by
riis5 · May 26, 2019 at 02:32 PM ·
editorcoloreditorwindowfor-loopcolor change
Color in editor doesn't match up with image
In my script i change the color of a blue fire image to be see-through.
GetComponent<Image>().color = new Color(1f, 1f, 1f, 0.5f);
This is in a for-loop, checking if each image has to be see-through. However, even though it in the editor says the image is see-though, it's not.
When i take the code out of the for-loop, it works fine. I know it's not my for-loops fault, because i've put Debug.Logs in it, replacing the color change, to see if it works and it does.
Please help if you can. I've tried everything i can think of. Thanks!
untitled.png
(55.3 kB)
Comment