Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity ui change sprite

// TO change the sprite of an UI image, se below
GameObject.GetComponent<Image>().sprite = sprite;
 
PREVIOUS NEXT
Tagged: #unity #ui #change #sprite
ADD COMMENT
Topic
Name
2+2 =