Answers for "change sprite textuer unity"

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

Code answers related to "change sprite textuer unity"

C# Answers by Framework

Browse Popular Code Answers by Language