Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity color set alpha

//much like Vector3, individual pieces of a color cannot be changed
//but you can create a temporary color with the same values but a different alpha
image.color = new Color(image.color.r, image.color.g, image.color.b, 1f);
 
PREVIOUS NEXT
Tagged: #unity #color #set #alpha
ADD COMMENT
Topic
Name
1+8 =