API

Class AbstractActionManagerAbstract

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

Hierarchy (View Summary)

Implements

Index
actions: IAction[] = []

Gets the list of actions

disposeWhenUnowned: boolean = true

Gets or sets a boolean indicating if this ActionManager should be disposed once the last Mesh using it is disposed

hoverCursor: string = ""

Gets the cursor to use when hovering items

isRecursive: boolean = false

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

Triggers: { [key: string]: number } = {}

Gets the list of active triggers

  • Does this action manager handles actions of a given trigger

    Parameters

    • trigger: number

      defines the trigger to be tested

    • OptionalparameterPredicate: (parameter: any) => boolean

      defines an optional predicate to filter triggers by parameter

    Returns boolean

    whether the trigger is handled

  • 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

  • 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

  • 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