AnimationAction

An instance schedules the playback of an animation stored in AnimationClip

Animation Class

An instance schedules the playback of an animation stored in AnimationClip

Constructors

Properties

id: string

Action id = root.uuid@clip.name

name: string

Name from AnimationClip

active: boolean

If set to true, the action is played. It will be automatically set to false when animation stops.

paused: boolean

If set to true, the playback of the action is paused.

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: number

The degree of influence of this action for blending with other actions

speed: number

Weight factor for time, which can be set to negative.

time: number

local time for this action

Accessors

  • get timeDuration(): number

    Return max time

    Returns number

Methods

  • Configures the loop settings for this action

    Parameters

    • mode: Loop

      Loop mode

    • repetitions: number

      number of repetitions

    Returns this

  • Reset action

    Returns this

  • Parameters

    • deltaTime: number
    • accuIndex: number

    Returns void