

Slots also group attachments of the same type. A slot cannot have multiple attachments visible at the same time because the order those attachments are drawn would be undefined. Slots allow belly to be drawn under pants and shirt to be drawn above pants, even though both belly and shirt are on the same bone.Ī slot can have any number of attachments, but only one attachment can be visible at any given time. For example, the torso bone has slots belly and shirt, the hip bone has slot pants. Slots decouple bones from the draw order, allowing attachments on the same bone to be drawn above and below an attachment on a different bone. The draw order can be seen under the skeleton in the tree.

The draw order for a skeleton is a list of slots, where attachments for slots higher in the list are drawn on top of those below. Slots exist to facilitate flexible draw order. Root is a bone with two slots, eyes and head, and each slot has an attachment with the same name. Instead, attachments are attached to a "slot" and the slot is attached to a bone. However, in Spine attachments are not attached directly to a bone. In skeletal animation, an image, mesh or other "attachment" is attached to a bone, then when the bone is transformed (rotated, translated, scaled, or sheared) the attachment is also transformed. Meshes can be used to animate images without using bones. Simple skeletons can use a bone per image. It also makes it easy to keep the distance between elements consistent, when desired.īones are used for most animation in Spine, even skeletons that are not humanoid or animal. This hierarchical nature of the bones makes manipulating images more intuitive, allowing the animator to focus on the large scale motion. For example, moving an arm bone will also move the hand bone. When a bone is transformed, its children are affected.

Each bone has a rotation, translation, scale, and shear which is called the bone's transform. To add additional skeletons, choose New Skeleton from the Spine menu.Ī skeleton has a hierarchy of bones. SkeletonsĮach skeleton in the project appears in the tree view, along with all the bones, slots, attachments, and other information that make up the skeleton. Knowledge of these basic concepts is necessary to set up your own skeletons.
