Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
unity ui change sprite
Robert Harvey
Programming language:
C#
2021-06-15 02:22:06
0
Q:
unity ui change sprite
user106186
Code:
C#
2021-03-17 16:45:47
// TO change the sprite of an UI image, se below
GameObject.GetComponent<Image>().sprite = sprite;
1
Tags
unity
change
sprite
Related
change sprite of gameobject unity
unity change text color
how to change material in script unity
unity c# flip sprite
unity change text
unity set material color
unity editor on scene change
change olour in unity script
unity c# change color of gameobject
unity text change percentage
Change Level in Unity
New to Communities?
Join the community