• Editor
  • Template Information In Skin JSON Data

Can you shed some light on the template info exported in the skin data? How should this be parsed? Or Should it be ignored?

Related Discussions
...

Yea I have. The docs do not line up. The generated JSON data from Spine has a skin entry like this:

"skins": {
	"default": {
		"template": {
			"spineboy": { "y": 167.82, "width": 145, "height": 341 }
		},
               "left shoulder": {
			"left-shoulder": { "x": 23.74, "y": 0.11, "rotation": 62.01, "width": 34, "height": 53 }
		},

but the Attachment loader creates a region attachment for each slot by default and tries to find an atlas region called "spineboy" but it is not an image and it throws a runtime error.

Why is a template in the skin slots section of the JSON data? I thought only image attachments could be in the skin slots? Should there be a different type of slot for the template type?

That is the name of a slot on Spineboy which is called "template". Expand the root bone and you'll see it there 🙂

Right, I just need to either remove it or include that whole spineboy image in the final packed sprite sheet then. I guess I was confused and wandering why there is an attachment with the whole spine boy image when all the individual parts are already split up and attached to all the bones. Thought it might have been a special type of slot or something. Thanks.