Spine atlas repack
This tutorial explains how to get rid of whitespace around Spine atlas elements and repack them more tightly.
For this character
sprites were exported as png, without whitespace being trimmed out, like this:
to make sure that future changes in design won’t cause extra adjustments in Spine, and all elements will be at their place by default.
Spine export settings
After Spine animation is done. Data should be exported as following:
Import the exported JSON file either by dragging it to the window or clicking to open the file browser.
To set an export paths for the repacked atlas, on the left hand side select Atlas List > Export Atlas option. In Output Path, select a folder to save repacked atlas.
Next, Mesh Export Group > Mesh Export options. For Spine animation only Name and Output path is important.
Spine Item settings
Spine atlas region settings
Region override settings
In some situations some Spine atlas regions has to be treated differently to achieve better result.
When all settings are done, click “Build” button
A new Atlas texture and Spine files will be created at specified locations
Keep in mind that you need to copy all Spine pages, which were not included in SpriteUV project manually into export folder.
To repack pages separately you can pack the same Spine json multiple times for each page.