- Modificato
Spine CL Pack Atlases - Exclude unused images?
Pack: Spine -i <path> -o <path> -p <name>
Hello, according to help we are able to repack our atlases from command line. That part works well. What does not work is the if there is an image that is not used in the whole spine project then when I export it from Spine that image is not included in the atlases which is correct behavior. On the other hand if I use Spine CL on that same image directory regretfully also images that are not part of any skeleton are included into final atlases.
Is there a way to exclude unused images from final atlases when we call atlas process from CL?
Thank you, Marek.
There are two ways to run the texture packer:
Texture Packing - Spine User Guide
The same remains true from the CLI. If you are packing as part of JSON or binary export, only the used images are packed. If you run the packer on a folder, it packs all the images found. You could put your unused images in a subfolder, then create a pack.json
file in that subfolder containing { ignore: true }
and Spine's texture packer will ignore images in that subfolder (and any subfolders under it).