class ActionManager
Action Manager manages all events to be triggered on a given mesh or the global scene.
A single scene can have many Action Managers to handle predefined actions on specific meshes.
Name | Type | Description | |
---|---|---|---|
scene | Scene |
Does this action manager has pointer triggers
@return {boolean} whether or not it has pointer triggers
Does this action manager has pick triggers
@return {boolean} whether or not it has pick triggers
Does exist one action manager with at least one trigger
@return {boolean} whether or not it exists one action manager with one trigger
Does exist one action manager with at least one pick trigger
@return {boolean} whether or not it exists one action manager with one pick trigger
Does this action manager handles actions of any of the given triggers
@return {boolean} whether one (or more) of the triggers is handeled
Name | Type | Description | |
---|---|---|---|
triggers | number[] |
Does this action manager handles actions of a given trigger
@return {boolean} whether the trigger is handeled
Name | Type | Description | |
---|---|---|---|
trigger | number |
Does exist one action manager that handles actions of a given trigger
@return {boolean} whether the trigger is handeled by at least one action manager
Name | Type | Description | |
---|---|---|---|
trigger | number |
Registers an action to this action manager
@return {BABYLON.Action} the action amended (prepared) after registration
Name | Type | Description | |
---|---|---|---|
action | Action |
Process a specific trigger
Name | Type | Description | |
---|---|---|---|
trigger | number | ||
optional | evt | ActionEvent | {BABYLON.ActionEvent} the event details to be processed |
Name | Type | Description | |
---|---|---|---|
name | string |
Name | Type | Description | |
---|---|---|---|
parsedActions | any | ||
object | Nullable<AbstractMesh> | ||
scene | Scene |
Name | Type | Description | |
---|---|---|---|
trigger | number |