AnimationTrack class final

One animated property of one node.

Times and values are flat typed arrays rather than a list of keyframe objects: sampling runs every frame for every animated node, and a list of small objects is the shape that turns into GC pressure inside the frame budget.

Constructors

AnimationTrack({required int nodeIndex, required AnimationPath path, required AnimationInterpolation interpolation, required Float32List times, required Float32List values, required int componentCount, AnimationPointer? pointer})

Properties

componentCount → int
Components in one value: 3 for translation and scale, 4 for a rotation, the morph target count for weights.
final
endTime → double
no setter
hashCode → int
The hash code for this object.
no setterinherited
interpolation → AnimationInterpolation
final
keyCount → int
no setter
nodeIndex → int
Index into the model's node list; -1 for a AnimationPath.pointer track, which drives a material or a light rather than a node.
final
path → AnimationPath
final
pointer → AnimationPointer?
What a AnimationPath.pointer track drives, resolved at load; null for every other path.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startTime → double
When the first keyframe is, in seconds.
no setter
times → Float32List
Keyframe times in seconds, ascending.
final
values → Float32List
Keyframe values, componentCount * valuesPerKey per key.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sample(double time, Float32List out) → void
Samples the track at time, writing componentCount values into out.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited