• Editor
  • Reducing unused attachments

Related Discussions
...

Is there a way to automatically detect and delete unused attachments (ones that are not part of any animation) ? For example - if i have used png sequence for some smoke effects, then changed its duration for multiple events by stretching key positions in time line. Some of the attachments are now excluded, and doesn't have keys but appear in the atlas. Is the only option for them to be manually found and deleted so they not appear in export atlas?

Hello, we actually already have this on our roadmap, so I'll add your +1 to it!
[Find and Replace] Find and remove unused attachments · #200 · EsotericSoftware/spine-editor

By the way, another quick way to do this would be to:

  • filter the tree on attachments
  • select all of the attachments (by pressing shift then clicking the first and last attachment for example)
  • uncheck "export" in the attachments settings
  • export

Because attachments that are keyed in any animation will still be exported, this will have the effect to exclude just the unused ones. Just make sure that all the attachments you want to export actually do have at least one key, perhaps that activated their visibility in an animation.

2年 後

Hello!

Any news about this feature? I've been searching but I can't find newer information. Right now I'm in a project that I have to optimize lots of spines and without this "unused attachments" it's beeing such pain 😢

Any news about this feature?

No, I’m afraid not. Therefore, the answer posted by Erika is still valid. The issue ticket on GitHub will be updated whenever there is any progress.

We do a lot of improvements every day, but there's a long list of improvements left, so we hope you'll be patient for a while.

Thanks a lot for the update!