ReadonlyclipsArray of animation clips
If disabled, the Component will stop enacting its behavior.
ReadonlyisReturns true if this Component is currently being destroyed. Becomes true as soon as
destruction begins via Component#destroy or destruction of its owning SceneObject,
before any OnDestroyEvent callbacks fire.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
ReadonlyonBind a function to listen to the specified events emitted by AnimationAsset events. See here.
ReadonlysceneThe SceneObject this component is on.
ReadonlyuniqueAdds a clip to the player. If one exists, replace existing clip.
Destroys the component.
Tries to get a clip from the player, returns null if it does not exist.
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.
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