AnimationClip class final
A named set of tracks that play together.
Constructors
-
AnimationClip({required List<
AnimationTrack> tracks, String? name, Map<String, Object?> ? extras, double? referenceSeconds}) -
A clip of
tracks, its durationSeconds taken from their last keyframes.
Properties
- durationSeconds → double
-
Time of the last keyframe in any track.
final
-
extras
→ Map<
String, Object?> ? -
glTF's own
extrason this animation, carried opaquely — seeModelNode.extrasfor what that means and why.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether the clip has no tracks, and so moves nothing.
no setter
-
markers
→ List<
AnimationMarker> -
The moments named in this clip — a foot down, a blow landing — read
from extras as
{"markers": [{"time": 0.3, "name": "step"}, …]}, seconds into the clip, earliest first. glTF has nowhere of its own to put them; an animation'sextrasis where an exporter's custom properties go. Empty when it names none, or names them in another way.latefinal - name → String?
-
The animation's name in the file; null when it has none.
final
- referenceSeconds → double?
-
The moment in this clip that an additive layer measures its delta from —
gfx-10n's own row.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tracks
→ List<
AnimationTrack> -
The channels the clip drives, each with its own keyframes.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited