- Home /
Unclear on how exactly the Sprite Packer works
So I'm using the 2D tools and I'm not quite sure how the Sprite Packer works.
Let's say I have ten frames in an animation. They were not in a sprite sheet, but each frame was a separate PNG file. I created an animation out of these and it works. I was messing with the Sprite Packer and gave each of those ten frames the same packing tag. The Sprite Packer put them all on one sprite sheet, so that's cool.
What I'm unclear on, is how to use those sprites from that sheet. Does Unity magically know to look at the sprite sheet instead of the ten individual files now? Or do I have to do something to make the sprite sheet work instead of using the ten separate files.
Answer by NoseKills · Nov 22, 2014 at 09:04 AM
U got it right. Unity magically knows to pick the sprites from the sheet instead of using the individual images.
The only problem i have seen is that if the source pngs are in Resources folder, loading them loads an individual png, not the one from the sheet.
Your answer
Follow this Question
Related Questions
What is the best type of sprites for 2D top-down game 0 Answers
Steps to create 2D Animation from SpriteSheet 1 Answer
Distracting Sprite flip 2 Answers
How to call sprite at run time 3 Answers