AnimationAction
An instance schedules the playback of an animation stored in AnimationClip
An instance schedules the playback of an animation stored in AnimationClip
Constructors
Constructor
new AnimationAction(
root,clip,ctx,mixer):AnimationAction
Parameters
root
clip
ctx
ActionCtx
mixer
Returns
AnimationAction
Properties
id
readonlyid:string
Action id = [email protected]
name
readonlyname:string
Name from AnimationClip
active
active:
boolean
If set to true, the action is played. It will be automatically set to false when animation stops.
paused
paused:
boolean
If set to true, the playback of the action is paused.
pauseWhenFinished
pauseWhenFinished:
boolean
If set to true, the animation will be paused on its last frame.
If set to false, the animation target will be reset to original state at the end.
weight
weight:
number
The degree of influence of this action for blending with other actions
speed
speed:
number
Weight factor for time, which can be set to negative.
time
time:
number
local time for this action
Accessors
timeDuration
Get Signature
get timeDuration():
number
Return max time
Returns
number
Methods
createId()
staticcreateId(root,clip):string
Parameters
root
clip
Returns
string
setLoop()
setLoop(
mode,repetitions):this
Configures the loop settings for this action
Parameters
mode
Loop mode
repetitions
number
number of repetitions
Returns
this
reset()
reset():
this
Reset action
Returns
this
update()
update(
deltaTime,accuIndex):void
Parameters
deltaTime
number
accuIndex
number
Returns
void