AnimationTrack
Controls playback, speed, time, and weight of a loaded animation.
Behavior
AnimationTrack controls playback, speed, time, and weight of a loaded animation.
Summary
The Animation from which this track was loaded.
The runtime type name.
Whether playback is currently active.
The duration of the loaded animation, in seconds.
Looped: booleanWhether playback repeats after reaching the end.
Name: stringThe runtime value name.
The animation priority used to resolve competing joint poses.
The playback speed multiplier.
TimePosition: numberThe current playback position, in seconds.
The current blend weight.
The blend weight being approached.
AdjustSpeed(speed: number?): ()Changes the playback speed multiplier.
AdjustWeight(weight: number?, fadeTime: number?): ()Changes the target blend weight over the supplied fade duration, in seconds.
Destroy(): ()Stops playback and releases this playback object.
GetMarkerReachedSignal(name: string): AstScriptSignal<string>Returns the signal for the named animation marker.
IsA(wanted: string): booleanReturns whether the value matches the supplied type name.
Play(fadeTime: number?, weight: number?, speed: number?): ()Starts playback with optional fade, weight, or speed parameters.
Stop(fadeTime: number?): ()Stops playback with an optional fade duration, in seconds.
Fires when the track completes a loop.
Fires when playback and its influence on the pose have ended.
Fires when playback reaches a named keyframe.
Fires when playback stops.
Properties
Animation
AnimationTrack.Animation: Animation?The Animation from which this track was loaded.
ClassName
AnimationTrack.ClassName: stringThe runtime type name.
IsPlaying
AnimationTrack.IsPlaying: booleanWhether playback is currently active.
Length
AnimationTrack.Length: numberThe duration of the loaded animation, in seconds.
Looped
AnimationTrack.Looped: booleanWhether playback repeats after reaching the end.
Name
AnimationTrack.Name: stringThe runtime value name.
Priority
AnimationTrack.Priority: EnumItemThe animation priority used to resolve competing joint poses.
Speed
AnimationTrack.Speed: numberThe playback speed multiplier.
TimePosition
AnimationTrack.TimePosition: numberThe current playback position, in seconds.
WeightCurrent
AnimationTrack.WeightCurrent: numberThe current blend weight.
WeightTarget
AnimationTrack.WeightTarget: numberThe blend weight being approached.
Methods
AdjustSpeed
AnimationTrack:AdjustSpeed(speed: number?): ()Changes the playback speed multiplier.
AdjustWeight
AnimationTrack:AdjustWeight(weight: number?, fadeTime: number?): ()Changes the target blend weight over the supplied fade duration, in seconds.
Destroy
AnimationTrack:Destroy(): ()Stops playback and releases this playback object.
GetMarkerReachedSignal
AnimationTrack:GetMarkerReachedSignal(name: string): AstScriptSignal<string>Returns the signal for the named animation marker.
IsA
AnimationTrack:IsA(wanted: string): booleanReturns whether the value matches the supplied type name.
Play
AnimationTrack:Play(fadeTime: number?, weight: number?, speed: number?): ()Starts playback with optional fade, weight, or speed parameters.
Stop
AnimationTrack:Stop(fadeTime: number?): ()Stops playback with an optional fade duration, in seconds.
Events
DidLoop
AnimationTrack.DidLoop: RBXScriptSignalFires when the track completes a loop.
Ended
AnimationTrack.Ended: RBXScriptSignalFires when playback and its influence on the pose have ended.
KeyframeReached
AnimationTrack.KeyframeReached: RBXScriptSignalFires when playback reaches a named keyframe.
Stopped
AnimationTrack.Stopped: RBXScriptSignalFires when playback stops.
Operators
__type