valentincognito
9/22/2017 - 7:45 AM

Change Opacity Of Image

In order to change the opacity of a sprite you need to assign a color first.

image = GetComponent<Image>();
var tempColor = image.color;
tempColor.a = 1f;
image.color = tempColor;