Reference API Roblox

Engine API

Website

Related

Reference API Roblox

AnimationClipProvider

Provides functions to load and preview AnimationClips.

This class is not replicated. Its interface does not cross the network boundary.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
Tags: [NotCreatable, Service, NotReplicated]

Member index 8

HistoryMember
645GetAnimationClip(assetId: ContentId): AnimationClip
645GetAnimationClipAsync(assetId: ContentId): AnimationClip
553GetAnimationClipById(assetId: int64, useCache: bool): AnimationClip
502GetAnimations(userId: int64): Instance
645GetClipEvaluatorAsync(assetId: ContentId): ClipEvaluator
502GetMemStats(): Dictionary
645RegisterActiveAnimationClip(animationClip: AnimationClip): ContentId
645RegisterAnimationClip(animationClip: AnimationClip): ContentId
inherited from Instance
553Archivable: bool
635Capabilities: SecurityCapabilities
553ClassName: string
553Name: string
553Parent: Instance
635Sandboxed: bool
616UniqueId: UniqueId
553className: string
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
631GetAttributes(): Dictionary
486GetChildren(): Objects
462GetDebugId(scopeLength: int = 4): string
486GetDescendants(): Array
486GetFullName(): string
462GetPropertyChangedSignal(property: string): RBXScriptSignal
641GetStyled(name: string): Variant
576GetTags(): Array
576HasTag(tag: string): bool
486IsA(className: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
580IsPropertyModified(name: string): bool
573Remove(): null
576RemoveTag(tag: string): null
580ResetPropertyToDefault(name: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
553children(): Objects
553clone(): Instance
573destroy(): null
553findFirstChild(name: string, recursive: bool = false): Instance
553getChildren(): Objects
462isA(className: string): bool
553isDescendantOf(ancestor: Instance): bool
573remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462Changed(property: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
553childAdded(child: Instance)

Description

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.

History 16

Members 8

GetAnimationClip

Parameters (1)
assetIdContentId
Returns (1)
AnimationClip

Returns a AnimationClip from a given asset URL.

This function is deprecated. It exists only for backward compatibility, and should not be used for new work. GetAnimationClipAsync should be used instead.

History 3

Tags: [Deprecated]

GetAnimationClipAsync

Parameters (1)
assetIdContentId
Returns (1)
AnimationClip

Fetches an AnimationClip based on the specified assetId. The assetId must correspond to an animation asset in Roblox. The function will yield until the AnimationClip is loaded from the website and should be wrapped in a pcall.

This function yields. It will block the calling thread until completion.

History 2

Tags: [Yields]

GetAnimationClipById

Parameters (2)
assetIdint64
useCachebool
Returns (1)
AnimationClip

Returns a AnimationClip from the supplied assetId. Can optionally cache to reduce unnecessary loading freezes.

This function is deprecated. It exists only for backward compatibility, and should not be used for new work. GetAnimationClipAsync should be used instead.

History 2

Tags: [Deprecated]

GetAnimations

Parameters (1)
userIdint64
Returns (1)
Instance

This function returns an InventoryPages object which can be used to iterate over animations owned by a specific user.

This function has a number of potential uses, such as allowing users to browse and import animations into a custom animation plugin.

This function yields. It will block the calling thread until completion.

History 1

Tags: [Yields]

GetClipEvaluatorAsync

Parameters (1)
assetIdContentId
Returns (1)
ClipEvaluator
This function yields. It will block the calling thread until completion.

History 2

Tags: [Yields]

GetMemStats

Parameters (0)
No parameters.
Returns (1)
Dictionary

History 1

RegisterActiveAnimationClip

Parameters (1)
animationClipAnimationClip
Returns (1)
ContentId

Generates a temporary asset ID from a AnimationClip that can be used for localized testing of an animation. This performs the same function as RegisterAnimationClip() but generates an active:// URL instead of a hash. The generated ID can be used as an AnimationId property for testing.

The asset ID generated by this function is temporary and cannot be used outside of Studio. Developers wishing to generate an asset ID that can be used online should upload the AnimationClip to Roblox.

History 2

RegisterAnimationClip

Parameters (1)
animationClipAnimationClip
Returns (1)
ContentId

Generates a temporary asset ID from a AnimationClip that can be used for localized testing of an animation.

This function performs the same function to RegisterActiveAnimationClip yet generates an active:// URL instead of a hash.

The ID generated can be used for the Animation.AnimationId property to test animations.

The asset ID generated by this function is temporary and cannot be used outside of Studio. Developers wishing to generate an asset ID that can be used online should upload the AnimationClip to Roblox.

History 2

Settings