Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

change sprite of a sprite unity

public SpriteRenderer spriteRenderer;
public Sprite newSprite;

void ChangeSprite()
    {
        spriteRenderer.sprite = newSprite; 
    }
 
PREVIOUS NEXT
Tagged: #change #sprite #sprite #unity
ADD COMMENT
Topic
Name
8+1 =