How to create few different spine skeletons from single atlas

Hi, all.

I have few skeletons. There’re: Character.json and Enemy.json. Also, I have atlas Armature.atlas, Armature.png. And I would like to create few spine instances using a single atlas.

How can I do it?

Can anybody help me?

Ок, we will use Unity.

If you have separate skeletons, exporting normally will export one json per skeleton.
The rest of the setup (sharing atlases between skeletons) will be in code.
Nothing in the jsons themselves specifies an atlas of any sort. That relationship/connection is in the rendering code and you set that up in your game. It’s nowhere in the exported spine data.

This is the reason why the skeletons can be used in engines/frameworks that use their own atlasing system, or don’t have one at all.

One skeleton can also switch between different atlases at runtime if that’s appropriate. And that will work. (this is one way of implementing different texture quality levels)

1 Like