SkeletonData class
Stores the setup pose and all of the stateless data for a skeleton.
See Data objects in the Spine Runtimes Guide.
- Implementers
Constructors
- SkeletonData()
-
factory
-
SkeletonData.fromPointer(Pointer<
spine_skeleton_data_wrapper> _ptr)
Properties
- animations → ArrayAnimation
-
The skeleton's animations.
no setter
- audioPath ↔ String
-
The path to the audio directory as defined in Spine, or null if
nonessential data was not exported.
getter/setter pair
- bones → ArrayBoneData
-
The skeleton's bones, sorted parent first. The root bone is always the
first bone.
no setter
- constraints → ArrayConstraintData
-
The skeleton's constraints.
no setter
- defaultSkin ↔ Skin?
-
The skeleton's default skin. By default this skin contains all attachments
that were not in a skin in Spine.
getter/setter pair
- events → ArrayEventData
-
The skeleton's events.
no setter
- fps ↔ double
-
The dopesheet FPS in Spine. Available only when nonessential data was
exported.
getter/setter pair
- hash ↔ String
-
The skeleton data hash. This value will change if any of the skeleton data
has changed.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double
-
The height of the skeleton's axis aligned bounding box in the setup pose.
getter/setter pair
- imagesPath ↔ String
-
The path to the images directory as defined in Spine, or null if
nonessential data was not exported.
getter/setter pair
- name ↔ 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.
getter/setter pair
-
nativePtr
→ Pointer<
NativeType> -
Get the native pointer for FFI calls
no setter
- referenceScale ↔ double
-
Baseline scale factor for applying physics and other effects based on
distance to non-scalable properties, such as angle or scale. Default is
100.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skins → ArraySkin
-
All skins, including the default skin.
no setter
- slots → ArraySlotData
-
The skeleton's slots in the setup pose draw order.
no setter
- version ↔ String
-
The Spine version used to export this data, or NULL.
getter/setter pair
- width ↔ double
-
The width of the skeleton's axis aligned bounding box in the setup pose.
getter/setter pair
- x ↔ double
-
The X coordinate of the skeleton's axis aligned bounding box in the setup
pose.
getter/setter pair
- y ↔ double
-
The Y coordinate of the skeleton's axis aligned bounding box in the setup
pose.
getter/setter pair
Methods
-
dispose(
) → void -
findAnimation(
String animationName) → Animation? - Returns May be NULL.
-
findBone(
String boneName) → 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(
String eventDataName) → EventData? - Returns May be NULL.
-
findSkin(
String skinName) → Skin? - Returns May be NULL.
-
findSlot(
String slotName) → SlotData? - Returns May be NULL.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited