Protected
constructorWhether this AnimationMixer is set to automatically play animations on start.
If disabled, the Component will stop enacting its behavior.
Readonly
sceneThe scene object this component is on.
A multiplying value for the speed of all animations being controlled by the AnimationMixer. For example, a value of 2.0 will double animation speed, while a value of 0.5 will cut the speed in half.
Readonly
uniqueMakes a copy of the layer name
and stores it as newName
.
Adds a new AnimationMixerLayer to this AnimationMixer.
Destroys the component.
Returns a list of names of AnimationLayers in this AnimationMixer.
Returns the AnimationMixerLayer with the name name
.
Returns a list of all AnimationMixerLayers controlled by the AnimationMixer.
Returns the current time (in seconds) of the layer named name
.
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 animation layers named name
, or all layers if name
is empty.
Rebuild the animation hierarchy by finding all Animation components in the SceneObject and its children.
Resumes any paused animation layer with name name
, or all layers if name
is empty.
Sets the weight of any layers with name name
.
Starts playing animation layers named name
, or all layers if name
is empty. The animation will start with an offset of offset
seconds. The animation will play cycles
times, or loop forever if cycles
is -1.
Starts playing animation layers named name
, or all layers if name
is empty. The animation will start with an offset of offset
seconds. The animation will play cycles
times, or loop forever if cycles
is -1. eventCallback
will be called after any animation layer finishes playing.
Stops any animation layer with name name
, or all layers if name
is empty.
Controls playback of animations on the attached SceneObject and its child objects. Please refer to the Playing 3D Animation Guide for setting up and playing animations.
Deprecated
Example