Answers for "initialize gameobject and change sprite"

1

initialize gameobject and change sprite

Sprite newImage = Resources.Load<Sprite>(path);
        newObj.GetComponent<Image>().sprite = newImage;
Posted by: Guest on March-04-2021

Code answers related to "initialize gameobject and change sprite"

Browse Popular Code Answers by Language