Class · inherits Instance
AnimationClip
Represents all types of animation data that the Roblox animation system can consume.
About AnimationClip
The non-creatable AnimationClip instance type represents abstract
animation data that can be fed to the Roblox animation system.
KeyframeSequence and CurveAnimation are two current instance
types that inherit from AnimationClip.
There are different ways to represent animation data. To simplify the use of
Roblox's animation system, all such representations are their own instance
types but inherit from the AnimationClip instance. Animation clips
published to Roblox via the Animation Editor
can be loaded into the Roblox Engine using an Animation instance.
Properties 3
Length
: floatReadOnlyNotReplicatedThe length in seconds of this clip. Returns0until the animation has fully loaded.The read-only length, in seconds, of this
AnimationClip, computed from the timing of the underlying animation data (its keyframes or curves).Because a clip's animation data may still be downloading when the property is first accessed,
Lengthreturns0until the animation has fully loaded. Poll for a non-zero value if you need the duration right away.AnimationTrackinstances load anAnimationClipwhen anAnimationis requested via itsAnimationId, andAnimationTrack.Lengthreflects the underlyingAnimationClipvalue.Loop
: booleanDetermines whether the animation stored in thisAnimationClipis intended to loop.Determines whether the animation stored in this
AnimationClipis intended to loop. When set to true, the animation will continuously repeat each time it finishes.Note that
AnimationTrackinstances internally load anAnimationClipwhen anAnimationis requested via itsAnimationId, and theAnimationTrack.Loopedproperty will default to the originalAnimationClipvalue. Note also that this value can be overwritten.Priority
: AnimationPriorityDetermines which clip takes priority when multiple animations are playing simultaneously.Determines which clip takes priority when multiple animations are playing simultaneously. Multiple playing animations look to this property to figure out which
Keyframeposes should be played over one another.Note that
AnimationTrackinstances internally load anAnimationClipwhen anAnimationis requested via itsAnimationId, and theAnimationTrack.Priorityproperty will default to the originalAnimationClipvalue. Note also that this value can be overwritten.
AnimationClip also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.