Stores the setup pose and all of the stateless data for a skeleton.
See Data objects in the Spine Runtimes Guide.
Constructor
Variables
Methods
getBones():Array<BoneData>
The skeleton's bones, sorted parent first. The root bone is always the first bone.
findBone(boneName:String):BoneData
Finds a bone by comparing each bone's name. It is more efficient to cache the results of this method than to call it multiple times.
findSlot(slotName:String):SlotData
Finds a slot by comparing each slot's name. It is more efficient to cache the results of this method than to call it multiple times.
getDefaultSkin():Skin
The skeleton's default skin. By default this skin contains all attachments that were not in a skin in Spine.
See {@link Skeleton#getAttachment(int, String)}.
findSkin(skinName:String):Skin
Finds a skin by comparing each skin's name. It is more efficient to cache the results of this method than to call it multiple times.
findEvent(eventDataName:String):EventData
Finds an event by comparing each events's name. It is more efficient to cache the results of this method than to call it multiple times.
findAnimation(animationName:String):Animation
Finds an animation by comparing each animation's name. It is more efficient to cache the results of this method than to call it multiple times.
findIkConstraint(constraintName:String):IkConstraintData
Finds an IK constraint by comparing each IK constraint's name. It is more efficient to cache the results of this method than to call it multiple times.
findTransformConstraint(constraintName:String):TransformConstraintData
Finds a transform constraint by comparing each transform constraint's name. It is more efficient to cache the results of this method than to call it multiple times.
findPathConstraint(constraintName:String):PathConstraintData
Finds a path constraint by comparing each path constraint's name. It is more efficient to cache the results of this method than to call it multiple times.
getName():String
The skeleton's name, which by default is the name of the skeleton data file when possible, or null when a name hasn't been set.
getHash():String
The skeleton data hash. This value will change if any of the skeleton data has changed.
getImagesPath():String
The path to the images directory as defined in Spine, or null if nonessential data was not exported.
getAudioPath():String
The path to the audio directory as defined in Spine, or null if nonessential data was not exported.