Protected
constructorThe name of the animation layer being used for this animation.
The number of times this animation will play. If -1, the animation will loop forever.
If true, the animation will stop having an effect.
The framerate (frames per second) of the animation.
The starting point for this animation clip.
If rangeType
is set to Time
, this is the point to start at in seconds.
If rangeType
is set to Frames
, this is the frame number to start at.
The name of the AnimationMixerLayer.
Defines the animation's looping behavior.
If set to AnimationClip.PostInfinity.Cycle
, the animation will restart from the beginning each time it loops.
If set to AnimationClip.PostInfinity.Oscillate
, the animation will switch between normal and reverse playback each time it loops.
This is set to Cycle
by default.
The range type used for defining the animation clip.
If set to AnimationClip.RangeType.Time
, to
and from
represent times in seconds.
If set to AnimationClip.RangeType.Frames
, to
and from
represent frame numbers.
If true, the animation will play play in reverse.
A multiplying value for the speed of this animation. For example, a value of 2.0 will double animation speed, while a value of 0.5 will cut the speed in half.
The ending point for this animation clip.
If rangeType
is set to Time
, this is the point to end at in seconds.
If rangeType
is set to Frames
, this is the frame number to end at.
The weight of this animation layer. Range is from [0-1], 0 being no animation strength and 1 being full animation strength.
Returns a copy of this AnimationMixerLayer, with the name changed to newName
.
Returns the length of the animation in seconds.
Returns the current playback position of the animation in seconds.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns whether the animation is currently playing.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Pauses the animation.
Resumes the animation if it has been paused.
Starts playing the animation with an offset of offsetArg
seconds.
The animation will play cycles
times, or loop forever if cycles
is -1.
Starts the animation with an offset of offsetArg
seconds.
The animation will play cycles
times, or loop forever if cycles
is -1.
eventCallback
will be called after the animation finishes.
Stops the animation from playing and jumps to the animation's end.
Controls animation playback for a single animation layer. See also: AnimationMixer.
Deprecated
Example