Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract class used to decouple action Manager from scene and meshes. Do not instantiate.

see

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

Hierarchy

Implements

Index

Constructors

Properties

actions: IAction[]

Gets the list of actions

hoverCursor: string

Gets the cursor to use when hovering items

isRecursive: boolean

Gets or sets a boolean indicating that the manager is recursive meaning that it can trigger action from children

Triggers: {}

Gets the list of active triggers

Type declaration

  • [key: string]: number

Accessors

  • get hasPickTriggers(): boolean
  • Does this action manager has pick triggers

    Returns boolean

  • get hasPointerTriggers(): boolean
  • Does this action manager has pointer triggers

    Returns boolean

  • get HasPickTriggers(): boolean
  • Does exist one action manager with at least one pick trigger

    Returns boolean

  • get HasTriggers(): boolean
  • Does exist one action manager with at least one trigger

    Returns boolean

Methods

  • dispose(): void
  • Releases all associated resources

    Returns void

  • hasSpecificTrigger(trigger: number, parameterPredicate?: (parameter: any) => boolean): boolean
  • Does this action manager handles actions of a given trigger

    Parameters

    • trigger: number

      defines the trigger to be tested

    • Optional parameterPredicate: (parameter: any) => boolean

      defines an optional predicate to filter triggers by parameter

        • (parameter: any): boolean
        • Parameters

          • parameter: any

          Returns boolean

    Returns boolean

    whether the trigger is handled

  • hasSpecificTriggers(triggers: number[]): boolean
  • Does this action manager handles actions of any of the given triggers

    Parameters

    • triggers: number[]

      defines the triggers to be tested

    Returns boolean

    a boolean indicating whether one (or more) of the triggers is handled

  • hasSpecificTriggers2(triggerA: number, triggerB: number): boolean
  • Does this action manager handles actions of any of the given triggers. This function takes two arguments for speed.

    Parameters

    • triggerA: number

      defines the trigger to be tested

    • triggerB: number

      defines the trigger to be tested

    Returns boolean

    a boolean indicating whether one (or more) of the triggers is handled

  • Process a specific trigger

    Parameters

    • trigger: number

      defines the trigger to process

    • Optional evt: IActionEvent

      defines the event details to be processed

    Returns void

  • Registers an action to this action manager

    Parameters

    • action: IAction

      defines the action to be registered

    Returns Nullable<IAction>

    the action amended (prepared) after registration

  • serialize(name: string): any
  • Serialize this manager to a JSON object

    Parameters

    • name: string

      defines the property name to store this manager

    Returns any

    a JSON representation of this manager

  • unregisterAction(action: IAction): Boolean
  • Unregisters an action to this action manager

    Parameters

    • action: IAction

      defines the action to be unregistered

    Returns Boolean

    a boolean indicating whether the action has been unregistered

  • HasSpecificTrigger(trigger: number): boolean
  • Does exist one action manager that handles actions of a given trigger

    Parameters

    • trigger: number

      defines the trigger to be tested

    Returns boolean

    a boolean indicating whether the trigger is handled by at least one action manager

Legend

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

Settings

Theme