AnimationClipProvider

Show Deprecated
Not Creatable
Service
Not Replicated

Provides functions to load and preview AnimationClips. It includes a number of functions that are useful when working with an Animation.

The AnimationClipProvider replaces the deprecated KeyframeSequenceProvider that was used to download KeyframeSequences by content ID.

The AnimationClipProvider has a number of uses.

  • Download the AnimationClip associated with an animation content ID from the Roblox website, regardless of the underlying type of AnimationClip (KeyframeSequence or CurveAnimation).
  • Generate a temporary ID to locally preview an animation.
  • Fetch the content IDs of animations owned by a particular user.

Summary

Methods

Properties

Methods

GetAnimationClip

Deprecated
Plugin Security

Parameters

assetId: ContentId

Returns

GetAnimationClipAsync

Yields

Parameters

assetId: ContentId

Returns

GetAnimationClipById

Deprecated
Plugin Security

Parameters

assetId: number
useCache: boolean

Returns

GetAnimations

Yields

Parameters

userId: number

Returns

GetClipEvaluatorAsync

ClipEvaluator
Yields

Parameters

assetId: ContentId

Returns

ClipEvaluator

RegisterActiveAnimationClip

ContentId

Parameters

animationClip: AnimationClip

Returns

ContentId

RegisterAnimationClip

ContentId

Parameters

animationClip: AnimationClip

Returns

ContentId

Events