Affinity

So, I've got 5 Skeletons and all image pieces collected in one directory.

The issue is when I use Sprite Packer and get all my textures neat in one output Unity does not find any other atlas asset but only one and screams back 'Missing Regions' for all the rest of skeleton's slots.

There's no issue of implementing the same export when I don't use Sprite Packer and generate atlas per skeleton, however, I'm guessing I didn't use it right or something..? But still, there're only so many settings options for me to look through to resolve this myself, and I still haven't got it.



++ This piece I'm doing is a UI piece. I've only used SkeletonAnimation or SkeletonAnimator components, but SkeletonGraphic seemed like a fitting concept, but SkeletonGraphic doesn't seem to play clips by me tweaking around inspector, and couldn't use any SkeletonUtilityBone which I need quite a lot for UI element manipulation. Am I doing things right here?
Affinity
Posts: 28

Pharan

It may have been packed in a way that the folder arrangement doesn't match how it was defined in the skeletons individually. You'd have to define them in the skeleton in such a way that it matches the way they're packed.
For example, if the attachment on the skeleton is defined as "hand" and it's packed as "goblin/hand", it will not be able to find it and assume it's missing.

If this isn't the problem, could you send us the json and atlas file? unity@esotericsoftware.com

Also, could you open the other question as a separate topic? Things are likely to get messy if we clump it with this topic.
User avatar
Pharan

Pharan
Posts: 4949

Affinity

Pharan wrote:It may have been packed in a way that the folder arrangement doesn't match how it was defined in the skeletons individually. You'd have to define them in the skeleton in such a way that it matches the way they're packed.
For example, if the attachment on the skeleton is defined as "hand" and it's packed as "goblin/hand", it will not be able to find it and assume it's missing.

If this isn't the problem, could you send us the json and atlas file? unity@esotericsoftware.com

Also, could you open the other question as a separate topic? Things are likely to get messy if we clump it with this topic.
Thanks, Pharan! I think your advice is spot-on with the issue.
For the record .spine is inside FolderA, input texture for texture packer are in FolderB(which is inside FolderA) and output route is in FolderC(also inside FolderA that makes both FolderB & FolderC in FolderA).

So, changing 'hand' which is 'goblin/hand,' how do I do this?
Affinity
Posts: 28

Pharan

You probably have to change the "path" value of your Images node to the parent folder of B.
Then then use Find and Replace to include the name of B, eg FolderB\hand, for each of the attachments you have.
You can add the folder name to the attachment name itself, or to the attachment's "path" field.

You can find more information about it here:
Images - Spine User Guide: Images node
Tree - Spine User Guide: Find and Replace
User avatar
Pharan

Pharan
Posts: 4949


Return to Unity