• Editor
  • Hiding slots for skinning

  • Изменено
Related Discussions
...

Hello, I'm having trouble with my animations. I have a set of rotated bodyparts in their respective slot (for example, I have the torso of a character in different angles in the same slot) and these slots are being changed when needed. In order to have multiple skins with their respected rotated versions,
I thought that I could place every rotated bodyparts in separate slots, so when needed, for example, I show at frame 0 in an animation the 90º torso, with its current attached version, then at the frame 5 I hide the previous slot and show another slot of another angle of the same torso. By doing this instead of having each rotated torso in a single slot, I could call a skin that shows a different torso, with its own rotated versions. However... I can't hide slots in a animation...

I don't know if I described the issue here, but I what I want to do is for example I have this guy.

What if I want to use a blue armor instead of the white one, how I configure the spine file in orde for this to happen?

Note slots are not hidden or shown (except for convenience in the editor to see what is underneath while animating). Slots contain attachments and the attachments are what is hidden or shown.
Basic Concepts - Spine User Guide: Slots

Likely you want to use skins:
Skins - Spine User Guide

Create a new skin (eg white armor), filter the tree to only show attachments (the paper clip icon at the top of the tree), select the attachments you want to put in the skin (eg all the white armor pieces), click New > Skin Placeholder. Your skeleton should be largely the same, but now with skin placeholders. Duplicate the skin and rename it (eg blue armor), then use Find and Replace (magnifier and pencil icon at the top of the tree) to rename all the attachments (eg from white-leg to blue-leg).

If you plan on having many, many skins, it may be tedious to set them all up in Spine. In that case, you may want to setup a single skin in Spine and then at runtime duplicate it and change the attachments the desired set of images:
Runtime Skins - Spine Runtimes Guide: Creating attachments