
Mirror Engine API / AnimTrack
Class: AnimTrack
An AnimTrack stores the curve data necessary to animate a set of target nodes. It can be linked to the nodes it should animate using the AnimComponent#assignAnimation method.
Properties
EMPTY
static EMPTY: AnimTrack;
This AnimTrack can be used as a placeholder track when creating a state graph before having all associated animation data available.
curves
Get Signature
get curves(): AnimCurve[]
Gets the list of curves contained in the AnimTrack.
Returns
duration
Get Signature
get duration(): number
Gets the duration of the AnimTrack.
Returns
number
events
Get Signature
get events(): AnimEvents
Gets the animation events that will fire during the playback of this anim track.
Returns
Set Signature
set events(animEvents: AnimEvents): void
Sets the animation events that will fire during the playback of this anim track.
Parameters
animEvents
Returns
void
inputs
Get Signature
get inputs(): AnimData[]
Gets the list of curve key data contained in the AnimTrack.
Returns
AnimData
[]
name
Get Signature
get name(): string
Gets the name of the AnimTrack.
Returns
string
outputs
Get Signature
get outputs(): AnimData[]
Gets the list of curve values contained in the AnimTrack.
Returns
AnimData
[]