Protected
constructorReadonly
clipsArray of animation clips
If disabled, the Component will stop enacting its behavior.
Readonly
onBind a function to listen to the specified events emitted by AnimationAsset
events.
Readonly
sceneThe scene object this component is on.
Readonly
uniqueAdds a clip to the player. If one exists, replace existing clip.
Destroys the component.
Updates the animation player forcing sampling, resulting in the setting of transforms and firing of animation events.
Get currently playing clips.
Tries to get a clip from the player, returns null if it does not exist.
Returns the current time for a clip.
Returns if a clip is enabled for playback.
Returns if a clip is playing.
Get currently inactive clips.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Pauses all clips.
Pause the clip with name.
Plays all clips.
Plays clip with the given name and starting from the given time.
Removes a clip from the player.
Resumes all clips.
Resumes clip with name.
Sets the clip to be enabled.
Stops all clips and resets time to t = 0.
Stops the clip and resets time to t = 0.
Controls animation playback. The component takes in a list of AnimationClips, and allows you to play, stop, resume, subscribe to animation events, and more.
See
Example