Game Object has an Image Attached to it. I tried
gameObject.GetComponent<Image>().color = new Color(255f, 255f, 255f, 50f);
and it wont change anything
anyone knows why?
Game Object has an Image Attached to it. I tried
gameObject.GetComponent<Image>().color = new Color(255f, 255f, 255f, 50f);
and it wont change anything
anyone knows why?
Because Color is 0 to 1. If you want to do 0 to 255, use Color32.