AbstractActionManager

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

see

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

Hierarchy

Implements

Index

Properties

actions

Find examples in Playground
actions: IAction[]

Gets the list of actions

Abstract hasPickTriggers

Find examples in Playground
hasPickTriggers: boolean

Does this action manager has pick triggers

Abstract hasPointerTriggers

Find examples in Playground
hasPointerTriggers: boolean

Does this action manager has pointer triggers

hoverCursor

Find examples in Playground
hoverCursor: string

Gets the cursor to use when hovering items

isRecursive

Find examples in Playground
isRecursive: boolean

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

Static HasPickTriggers

Find examples in Playground
HasPickTriggers: boolean

Does exist one action manager with at least one pick trigger

Static HasTriggers

Find examples in Playground
HasTriggers: boolean

Does exist one action manager with at least one trigger

Static Triggers

Find examples in Playground
Triggers: object

Gets the list of active triggers

Type declaration

  • [key: string]: number

Methods

Abstract dispose

Find examples in Playground
  • dispose(): void

Abstract hasSpecificTrigger

Find examples in Playground
  • hasSpecificTrigger(trigger: number, parameterPredicate?: function): boolean
  • Does this action manager handles actions of a given trigger

    Parameters

    • trigger: number

      defines the trigger to be tested

    • Optional parameterPredicate: function

      defines an optional predicate to filter triggers by parameter

        • (parameter: any): boolean
        • Parameters

          • parameter: any

          Returns boolean

    Returns boolean

    whether the trigger is handled

Abstract hasSpecificTriggers

Find examples in Playground
  • 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

Abstract hasSpecificTriggers2

Find examples in Playground
  • 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

Abstract processTrigger

Find examples in Playground
  • Process a specific trigger

    Parameters

    • trigger: number

      defines the trigger to process

    • Optional evt: IActionEvent

      defines the event details to be processed

    Returns void

Abstract registerAction

Find examples in Playground
  • 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

Abstract serialize

Find examples in Playground
  • 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

Abstract unregisterAction

Find examples in Playground
  • 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

Static HasSpecificTrigger

Find examples in Playground
  • 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 handeled by at least one action manager

Generated using TypeDoc