Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to change image color unity

using UnityEngine.UI;

public GameObject YourgameObjectWithImage;
YourgameObjectWithImage.GetComponent<Image>().color = new Color32(255, 255, 225, 225);
 
PREVIOUS NEXT
Tagged: #change #image #color #unity
ADD COMMENT
Topic
Name
9+4 =