Answers for "change sprite of a sprite unity"

C#
1

change sprite of a sprite unity

public SpriteRenderer spriteRenderer;
public Sprite newSprite;

void ChangeSprite()
    {
        spriteRenderer.sprite = newSprite; 
    }
Posted by: Guest on October-11-2020

Code answers related to "change sprite of a sprite unity"

C# Answers by Framework

Browse Popular Code Answers by Language