• Editor
  • Feature request: Texture Packer excludes

Related Discussions
...

Hi guys,

Just wondering if there was any way to exclude sub-folders when packing folder-directories using Texture Packer?

My problem is i'm using certain 'mockup' sprites from a folder that I dont want to include in my generated atlas. These sprites serve purely as guideline images to help get sizing right when creating animations in spine. i.e. they will be turned off in spine when exporting the json anim data.

Thanks in advance!

a year later

Bump 🙂
Or is this maybe possible in one of the newer versions?

I think the texture packer only packs the textures that are actually used in the spine asset.

@Xelnath, he's talking about using the Texture Packer without exporting a skeleton. By default, that just packs the whole folder of images because it has no other info.
I haven't come across a feature that lets the packer exclude images.

Exactly - a feature where I could say to a texture / container / bone or a combination thereof "You shall not be exported!".

This would be useful with all kinds of animations that require mockup images for exakt positioning.

I think one thing that's possible is that you can put mockup/preview-only images in subfolders.

I recall the texture packer having the ability to pack subfolders separately. That way, you can just not include those resulting subfolder atlases in your game. I'll get back to you on how to do that.

We've added this in 3.4.00.
Texture Packing - Spine User Guide

Place a pack.json file in that folder you want to ignore with this content:

{ ignore: true }

Oh, I guess it wasn't possible until 3.4.
Subfolders are optionally packed as separate pages, not separate atlases.