Options
All
  • Public
  • Public/Protected
  • All
Menu

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

see

https://doc.babylonjs.com/features/featuresDeepDive/events/actions

Hierarchy

Index

Constructors

  • 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

func: ((evt: ActionEvent) => void)

Type declaration

onBeforeExecuteObservable: Observable<Action>

An event triggered prior to action being executed.

trigger: number

Trigger for the action

triggerOptions: any

the trigger, with or without parameters, for the action

Methods

  • Execute the action and run the attached code.

    Parameters

    Returns void

  • getTriggerParameter(): any
  • Gets the trigger parameter

    Returns any

    the trigger parameter

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

    Parameters

    • parent: any

      of child

    Returns any

    the serialized object

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

    Parameters

    • value: any

      defines the new trigger parameter

    Returns void

  • skipToNextActiveAction(): void

Legend

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

Settings

Theme