ExecuteCodeAction

This defines an action responsible to run code (external event) once triggered.

see

http://doc.babylonjs.com/how_to/how_to_use_actions

Hierarchy

Index

Constructors

constructor

Find examples in Playground
  • Instantiate the action

    Parameters

    • triggerOptions: any

      defines the trigger options

    • func: function

      defines the callback function to run

    • Optional condition: Condition

      defines the trigger related conditions

    Returns ExecuteCodeAction

Properties

func

Find examples in Playground
func: function

The callback function to run.

Type declaration

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

getTriggerParameter

Find examples in Playground
  • getTriggerParameter(): any

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

then

Find examples in Playground

Generated using TypeDoc