Stores the setup pose and all of the stateless data for a skeleton.
See Data objects in the Spine Runtimes Guide.
Constructor
Variables
audioPath:Null<String>
The path to the audio directory as defined in Spine. Available only when nonessential data was exported.
bones:Array<BoneData> = new Array<BoneData>()
The skeleton's bones, sorted parent first. The root bone is always the first bone.
defaultSkin:Null<Skin>
The skeleton's default skin. By default this skin contains all attachments that were not in a skin in Spine.
hash:Null<String>
The skeleton data hash. This value will change if any of the skeleton data has changed.
imagesPath:Null<String>
The path to the images directory as defined in Spine. Available only when nonessential data was exported.
name:Null<String>
The skeleton's name, which by default is the name of the skeleton data file, if possible.
pathConstraints:Array<PathConstraintData> = new Array<PathConstraintData>()
The skeleton's path constraints.
transformConstraints:Array<TransformConstraintData> = new Array<TransformConstraintData>()
The skeleton's transform constraints.
Methods
findAnimation(animationName:String):Null<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.
findBone(boneName:String):Null<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.
findEvent(eventDataName:String):Null<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.
findIkConstraint(constraintName:String):Null<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.
findPathConstraint(constraintName:String):Null<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.
findSkin(skinName:String):Null<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.
findSlot(slotName:String):Null<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.
findTransformConstraint(constraintName:String):Null<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.