Animator
Animators are
responsible for playing animations on the Luanoid primarily through the
CharacterController. Luanoids can accept different Animators by setting the
Animator
property on them.
Animations loaded on the server before the Client Luanoid is created will automatically be replicated.
See Custom Animators for writing your own Animator.
Properties
Luanoid
This item is read only and cannot be modified. Read OnlyAnimator.Luanoid:
Luanoid
Reference to the Luanoid this CharacterController is attached to.
AnimationController
This item is read only and cannot be modified. Read OnlyAnimator.AnimationController:
AnimationController
Reference to the AnimationController used internally.
Animator
This item is read only and cannot be modified. Read OnlyAnimator.Animator:
Animator
Reference to the Animator used internally.
AnimationTracks
This item is read only and cannot be modified. Read OnlyReferences to the loaded AnimationTracks.
AnimationPlayed
This item is read only and cannot be modified. Read OnlyFires after PlayAnimation()
is executed.
AnimationStopped
This item is read only and cannot be modified. Read OnlyFires after StopAnimation()
is executed.
AnimationLoaded
This item is read only and cannot be modified. Read OnlyFires after LoadAnimation()
is executed.
AnimationUnloading
This item is read only and cannot be modified. Read OnlyFires while UnloadAnimation()
is executing.
Functions
LoadAnimation
Loads an animation into the Animator under a name that can be used to play it later.
PlayAnimation
Animator:
PlayAnimation
(
name:Â
string
,
...:Â
any
) →Â
(
)
Plays an animation loaded previously. Remaining arguments are passed to
AnimationTrack:Play()
.
StopAnimation
Animator:
StopAnimation
(
name:Â
string
,
...:Â
any
) →Â
(
)
Stops a playing AnimationTrack. Remaining arguments are passed to
AnimationTrack:Stop()
.
StopAnimations
Animator:
StopAnimations
(
...:Â
any
) →Â
(
)
Stops all currently playing AnimationTracks. Arguments are passed to
AnimationTrack:Stop()
.
UnloadAnimation
Animator:
UnloadAnimation
(
name:Â
string
) →Â
(
)
Unloads an animation from the Animator.
UnloadAnimations
Animator:
UnloadAnimations
(
) →Â
(
)
Unloads all animations from the Animator.