Answers for "how to change a image with code unity"

C#
5

how to change a image with code unity

// Change From GameOject
public GameObject GameObjectWithImage;
public Sprite ImageYouWant;
GameObjectWithImage.GetComponent<Image>().sprite = ImageYouWant

// Change From Image
public Image Image;
public Sprite ImageYouWant;
Image.sprite = ImageYouWant
Posted by: Guest on October-31-2020

Code answers related to "how to change a image with code unity"

C# Answers by Framework

Browse Popular Code Answers by Language