API

Class PlayAnimationAction

This defines an action responsible to start an animation once triggered.

Hierarchy (View Summary)

Index
  • Instantiate the action

    Parameters

    • triggerOptions: any

      defines the trigger options

    • target: any

      defines the target animation or animation name

    • from: number

      defines from where the animation should start (animation frame)

    • to: number

      defines where the animation should stop (animation frame)

    • Optionalloop: boolean

      defines if the animation should loop or stop after the first play

    • Optionalcondition: Condition

      defines the trigger related conditions

    Returns PlayAnimationAction

from: number

Where the animation should start (animation frame)

loop?: boolean

Define if the animation should loop or stop after the first play.

onBeforeExecuteObservable: Observable<Action> = ...

An event triggered prior to action being executed.

to: number

Where the animation should stop (animation frame)

trigger: number

Trigger for the action

triggerOptions: any

the trigger, with or without parameters, for the action