Published
- 1 min read
get sprite name from gameobject
The solution for this is noted below
get sprite name from gameobject
Solution
GetComponent<SpriteRender>().sprite.name;
Try other methods by searching on the site. That is if this doesn’t work