How can I control the order in which sprites are placed on a sprite sheet?
By default, TexturePacker optimizes sprite placement to minimize empty space. However, this means that adding, removing, or resizing sprites can significantly change the packing result.
If you need a more stable layout or want to define the exact order, use one of these options to arrange sprites row-by-row, ordered by file name:
- Grid/Strip algorithm: Packs sprites in a grid with uniform cell sizes.
- Basic algorithm with Sort by: Name: Places sprites in rows, where the largest sprite in each row determines the row height.
Sprites are sorted by file name, including their path within smart folders. Placement is done row-by-row, from left to right, and from top to bottom.