In unity there was a parts renderer and a render seperator script to split the spine skeleton into parts. Is there something similar in godot? I would like to change the sorting order of parts at runtime within the editor

Related Discussions
...

@Chill In spine-godot you have SpineSlotNode for that purpose:
https://esotericsoftware.com/spine-godot#SpineSlotNode
It allows you to insert your own objects or particle systems in the draw order, effectively splitting the skeleton at the respective slot.

Ty @Harald ! But what i mean is if, for example my character loses a hand lets say and then i simply want to make it get drawn behind the character or remove it. Would this be possible with the SpineSlotNode?

  • Misaki ответили на это сообщение.

    Chill If you just want to hide your skeleton's hand, I think it could be accomplished by simply setting the attachment to be displayed in the hand slot to null using the set_attachment() method, like this:

    get_skeleton().find_slot("hand").set_attachment(null);

    Currently there is no method to easily change the draw order, it may be faster to prepare an animation with a key of the changed draw order and play it on a higher track.

    • Chill ответили на это сообщение.
      4 дня спустя

      Misaki

      Currently there is no method to easily change the draw order

      okay i will find another way then i hope, like you said with the seperate animation maybe, ty! 🙂