Class AbstractActionManager
Hierarchy
- AbstractActionManager
Implements
Index
Properties
actionsSearch playground for actions
Gets the list of actions
hover CursorSearch playground for hoverCursor
Gets the cursor to use when hovering items
is RecursiveSearch playground for isRecursive
Gets or sets a boolean indicating that the manager is recursive meaning that it can trigger action from children
Static TriggersSearch playground for Triggers
Gets the list of active triggers
Type declaration
-
[key: string]: number
Accessors
has Pick Triggers
-
Does this action manager has pick triggers
Returns boolean
has Pointer Triggers
-
Does this action manager has pointer triggers
Returns boolean
Static Has Pick Triggers
-
Does exist one action manager with at least one pick trigger
Returns boolean
Static Has Triggers
-
Does exist one action manager with at least one trigger
Returns boolean
Methods
Abstract disposeSearch playground for dispose
-
Releases all associated resources
Returns void
Abstract has Specific TriggerSearch playground for hasSpecificTrigger
-
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
-
-
Parameters
-
parameter: any
Returns boolean
-
-
-
Returns boolean
whether the trigger is handled
-
Abstract has Specific TriggersSearch playground for hasSpecificTriggers
-
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 has Specific Triggers2Search playground for hasSpecificTriggers2
-
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 process TriggerSearch playground for processTrigger
-
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 register ActionSearch playground for registerAction
Abstract serializeSearch playground for serialize
-
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 unregister ActionSearch playground for unregisterAction
-
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 Has Specific TriggerSearch playground for HasSpecificTrigger
-
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
-
Abstract class used to decouple action Manager from scene and meshes. Do not instantiate.
https://doc.babylonjs.com/how_to/how_to_use_actions