Question by
lukaskrepel · Jun 09, 2016 at 01:48 PM ·
c#spritespritesspriterendererspritesheet
Getting name of Spritesheet on runtime with C#? (Not individual SpriteName)
I know we can get the current sprite from a SpriteRenderer, but is there a way to get the name of the SpriteSheet that contains the sprite that is currently being used?
Comment
Best Answer
Answer by FortisVenaliter · Jun 09, 2016 at 04:12 PM
You're looking for the texture field of the sprite.
Your answer
Follow this Question
Related Questions
Problem Changing Sprites with an Array of Sprites 1 Answer
Get sprite size and position 0 Answers
Need help trying to get button to light up sprite 1 Answer
How to access individual sprites by name when running a "right-click on asset" menuitem? 0 Answers
Sprite invisible in both Scene and Game view, but only in some scenes. 1 Answer