• Editor
  • How to Change Slot Positions When Switching Between Skins in Spine?

I have a project in Spine where I’m working with two different skins: one for a vertical layout and one for a horizontal layout. I’ve successfully created and animated both skins, but I’m encountering an issue with slot positions. Specifically, I need the slots to change positions based on the active skin while maintaining the same attachments within those slots.

Here’s what I’ve done so far:

•	I created the vertical skin with slots in their respective positions.
•	I created the horizontal skin with slots in different positions.
•	Both skins are fully animated.

However, when I switch between the vertical and horizontal skins, the slot positions do not update accordingly. I’ve tried duplicating slots and toggling them on and off for each skin, but the positions still don’t change automatically.

My question is: How can I achieve automatic slot position changes when switching between skins in Spine? Is there a specific method or best practice for this?

Any advice or guidance would be greatly appreciated!

Thank you!

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

    Elio The following blog post should help you accomplish what you want to do:
    Blog - Skin constraints for different proportions

    Also, Erika, the author of the above blog post, recently held a Twitch stream in which she gave a comprehensive explanation of what skins can do. In this stream, she also explains skin constraints, which may be helpful:

    • Erika оценил это.