Options
All
  • Public
  • Public/Protected
  • All
Menu

This defines an action responsible to set a the state field of the target to a desired value once triggered.

see

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

Hierarchy

Index

Constructors

  • Instantiate the action

    Parameters

    • triggerOptions: any

      defines the trigger options

    • target: any

      defines the object containing the state property

    • value: string

      defines the value to store in the state field

    • Optional condition: Condition

      defines the trigger related conditions

    Returns SetStateAction

Properties

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

value: string

The value to store in the state field.

Methods

  • execute(): void
  • Execute the action and store the value on the target state property.

    Returns void

  • getTriggerParameter(): any
  • Gets the trigger parameter

    Returns any

    the trigger parameter

  • serialize(parent: any): any
  • Serializes the actions and its related information.

    Parameters

    • parent: any

      defines the object to serialize in

    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