Answers for "change sprite of gameobject unity"

C#
13

change sprite of gameobject unity

gameObjectName.GetComponent<SpriteRenderer>().sprite = spriteName;
Posted by: Guest on June-21-2020
1

load an image sprite script unity

void Start()
    {
        spriteArray = Resources.LoadAll<Sprite>("BirdHeroSprite");
    }
Posted by: Guest on October-06-2020

Code answers related to "change sprite of gameobject unity"

C# Answers by Framework

Browse Popular Code Answers by Language