Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity object change sprite

public SpriteRenderer spriteRenderer;
public Sprite newSprite;

void ChangeSprite()
    {
        spriteRenderer.sprite = newSprite; 
    }Copied!
Source by gamedevbeginner.com #
 
PREVIOUS NEXT
Tagged: #unity #object #change #sprite
ADD COMMENT
Topic
Name
3+8 =