Animation class
Stores a list of timelines to animate a skeleton's pose over time.
Constructors
- Animation(String name, ArrayTimeline timelines, double duration)
-
factory
-
Animation.fromPointer(Pointer<
spine_animation_wrapper> _ptr)
Properties
- bones → ArrayInt
-
The bone indices affected by this animation.
no setter
- duration ↔ double
-
The duration of the animation in seconds, which is usually the highest
time of all frames in the timeline. The duration is used to know when it
has completed and when it should loop back to the start.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The animation's name, which is unique across all animations in the
skeleton.
no setter
-
nativePtr
→ Pointer<
NativeType> -
Get the native pointer for FFI calls
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timelines ↔ ArrayTimeline
-
If the returned array or the timelines it contains are modified,
setTimelines() must be called.
getter/setter pair
Methods
-
apply(
Skeleton skeleton, double lastTime, double time, bool loop, ArrayEvent? events, double alpha, MixBlend blend, MixDirection direction, bool appliedPose) → void - Applies the animation's timelines to the specified skeleton.
-
dispose(
) → void -
hasTimeline(
ArrayPropertyId ids) → bool - Returns true if this animation contains a timeline with any of the specified property IDs.
-
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
Static Methods
-
search(
ArrayFloat values, double target) → int -
targetAfter the first and before the last entry. -
search2(
ArrayFloat values, double target, int step) → int