AnimationPath class final

Which node property a track drives.

A class with constants rather than an enum, so a value added in a minor release does not break a switch written against it: name is what a file or a snapshot writes, and byName reads it back.

Properties

componentCount → int
Components per keyframe value; zero means "as many as the mesh has morph targets", which only the accessor knows.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
The position in values: stable within a major, appended only.
no setter
name → String
The stable name, and the wire name: what a file, a report or a snapshot writes for this value. Never renamed within a major.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toGltf() → String
The exact inverse of fromGltf: the string a writer puts under channel.target.path.
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

byName(String name) → AnimationPath?
The value called name, or null for a name this version does not know, which is what a file written by a later version can carry.
fromGltf(String? name) → AnimationPath?
Reads a glTF channel.target.path; null for a path this version does not know, or for none.

Constants

pointer → const AnimationPath
A material or light property named by KHR_animation_pointer — see AnimationTrack.pointer, which says which one. A pointer track drives no node, so its AnimationTrack.nodeIndex is -1.
rotation → const AnimationPath
The node's rotation as a unit quaternion, xyzw.
scale → const AnimationPath
The node's scale per axis, xyz factors.
translation → const AnimationPath
The node's position relative to its parent, xyz in metres.
values → const List<AnimationPath>
Every value this version names, in declaration order. A later version appends; nothing is removed or renamed within a major.
weights → const AnimationPath
Morph target weights. Decoded so the clip is complete, but the player has nothing to apply them to until morph targets exist.