Options
All
  • Public
  • Public/Protected
  • All
Menu

The action to be carried out following a trigger

see

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

Hierarchy

Implements

Index

Constructors

  • 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

_actionManager: ActionManager

Internal only - manager for action

internal
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

_GetTargetProperty: ((target: Scene | Node) => { name: string; targetType: string; value: string })

Type declaration

    • (target: Scene | Node): { name: string; targetType: string; value: string }
    • Internal only

      internal

      Parameters

      Returns { name: string; targetType: string; value: string }

      • name: string
      • targetType: string
      • value: string
_SerializeValueAsString: ((value: any) => string)

Type declaration

    • (value: any): string
    • Internal only

      internal

      Parameters

      • value: any

      Returns string

Methods

  • _evaluateConditionForCurrentFrame(): boolean
  • Internal only - Returns if the current condition allows to run the action

    internal

    Returns boolean

  • Internal only - executes current action event

    internal

    Parameters

    Returns void

  • _getEffectiveTarget(target: any, propertyPath: string): any
  • internal

    Parameters

    • target: any
    • propertyPath: string

    Returns any

  • _getProperty(propertyPath: string): string
  • Internal only

    internal

    Parameters

    • propertyPath: string

    Returns string

  • _prepare(): void
  • Internal only

    internal

    Returns void

  • Execute placeholder for child classes

    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
  • Skips to next active action

    Returns void

Legend

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

Settings

Theme