Answers for "how to modify sprite"

C#
3

change sprite of a sprite unity

public SpriteRenderer spriteRenderer;
public Sprite newSprite;

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

C# Answers by Framework

Browse Popular Code Answers by Language