AnimationService
Registers and retrieves animation clips by identifier.
- Service
game:GetService("AnimationService")- Inherits
- Instance
- Replication
- Never
Behavior
AnimationService registers and retrieves animation clips by identifier.
Summary
Members5
Methods5
A local KeyframeSequence used as the animation source.
Returns the registered animation clips.
Returns this instance if it is an ExecutionGroup.
Registers a KeyframeSequence and returns its clip identifier.
Removes a registered clip and returns whether it existed.
Methods
Clip
AnimationService:Clip(clipId: string): AnimationClip?A local KeyframeSequence used as the animation source.
Clips
AnimationService:Clips(): tableReturns the registered animation clips.
GetExecutionGroup
AnimationService:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
Register
AnimationService:Register(sequence: KeyframeSequence, key: string?): stringRegisters a KeyframeSequence and returns its clip identifier.
Unregister
AnimationService:Unregister(clip_id: string): booleanRemoves a registered clip and returns whether it existed.
Inherited members
Inherited47
Instance47
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying