Action

The action to be carried out following a trigger

see

http://doc.babylonjs.com/how_to/how_to_use_actions#available-actions

Hierarchy

Index

Constructors

constructor

Find examples in Playground
  • Creates a new Action

    Parameters

    • triggerOptions: any

      the trigger, with or without parameters, for the action

    • Optional condition: Condition

      an optional determinant of action

    Returns Action

Properties

onBeforeExecuteObservable

Find examples in Playground
onBeforeExecuteObservable: Observable<Action>

An event triggered prior to action being executed.

trigger

Find examples in Playground
trigger: number

Trigger for the action

triggerOptions

Find examples in Playground
triggerOptions: any

the trigger, with or without parameters, for the action

Methods

execute

Find examples in Playground
  • Execute placeholder for child classes

    Parameters

    Returns void

getTriggerParameter

Find examples in Playground
  • getTriggerParameter(): any
  • Gets the trigger parameters

    Returns any

    the trigger parameters

serialize

Find examples in Playground
  • serialize(parent: any): any
  • Serialize placeholder for child classes

    Parameters

    • parent: any

      of child

    Returns any

    the serialized object

skipToNextActiveAction

Find examples in Playground
  • skipToNextActiveAction(): void
  • Skips to next active action

    Returns void

then

Find examples in Playground

Generated using TypeDoc