rayxuln / spine-runtime-for-godot

This project is a module for godot that allows it to load/play Spine skeleton animation.
MIT License
93 stars 22 forks source link

[Feature] Change default skin in editor #13

Closed jonchun closed 4 years ago

jonchun commented 4 years ago

If the default skin is blank (such as in the mix and match example) http://esotericsoftware.com/spine-examples-mix-and-match, you don't see anything in the editor. Would like a way to set the skin that the editor loads.

I think this would make the most sense as a string property on SpineSprite.

rayxuln commented 4 years ago

I added a field, "Packed Skin Resource" to SpineSprite class. You can custom the SpineSprite's skin by setting the sub skin names in the "Packed Skin Resource". The skeleton skin is set whenever this resource changes. The example project is updated, too.

jonchun commented 4 years ago

Works perfectly. You're amazing! This is even more than I was expecting.