SkeletonData
spine.SkeletonData (Class)
Stores the setup pose and all of the stateless data for a skeleton.
See Data objects in the Spine Runtimes
Guide.
Instance Members
The skeleton's bones, sorted parent first. The root bone is always the first bone.
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.
The skeleton's slots.
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.
spine
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)}.
| Returns |
|---------|
| [Skin](/api-docs/clay-native/spine/Skin/) |
spine
setDefaultSkin(defaultSkin: Skin): Void
Name |
Type |
defaultSkin |
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.
All skins, including the default skin.
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.
Name |
Type |
eventDataName |
String |
The skeleton's events.
The skeleton's animations.
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.
Name |
Type |
animationName |
String |
The skeleton's IK constraints.
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.
Name |
Type |
constraintName |
String |
The skeleton's transform constraints.
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.
Name |
Type |
constraintName |
String |
The skeleton's path constraints.
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.
Name |
Type |
constraintName |
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.
The X coordinate of the skeleton's axis aligned bounding box in the setup pose.
The Y coordinate of the skeleton's axis aligned bounding box in the setup pose.
The width of the skeleton's axis aligned bounding box in the setup pose.
The height of the skeleton's axis aligned bounding box in the setup pose.
The Spine version used to export the skeleton data, or null.
The skeleton data hash. This value will change if any of the skeleton data has changed.
The path to the images directory as defined in Spine, or null if nonessential data was not exported.
The path to the audio directory as defined in Spine, or null if nonessential data was not exported.
The dopesheet FPS in Spine, or zero if nonessential data was not exported.