Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExecuteCodeAction

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

see

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

Hierarchy

Implements

Index

Constructors

constructor

  • Instantiate the action

    Parameters

    • triggerOptions: any

      defines the trigger options

    • func: (evt: ActionEvent) => void

      defines the callback function to run

    • Optional condition: Condition

      defines the trigger related conditions

    Returns ExecuteCodeAction

Properties

funcSearch playground for func

func: (evt: ActionEvent) => void

The callback function to run.

Type declaration

onBeforeExecuteObservableSearch playground for onBeforeExecuteObservable

onBeforeExecuteObservable: Observable<Action>

An event triggered prior to action being executed.

triggerSearch playground for trigger

trigger: number

Trigger for the action

triggerOptionsSearch playground for triggerOptions

triggerOptions: any

the trigger, with or without parameters, for the action

Methods

executeSearch playground for execute

  • Execute the action and run the attached code.

    Parameters

    Returns void

getTriggerParameterSearch playground for getTriggerParameter

  • getTriggerParameter(): any

serializeSearch playground for serialize

  • serialize(parent: any): any
  • Serialize placeholder for child classes

    Parameters

    • parent: any

      of child

    Returns any

    the serialized object

setTriggerParameterSearch playground for setTriggerParameter

  • setTriggerParameter(value: any): void
  • Sets the trigger parameter

    Parameters

    • value: any

      defines the new trigger parameter

    Returns void

skipToNextActiveActionSearch playground for skipToNextActiveAction

  • skipToNextActiveAction(): void

thenSearch playground for then

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method