Class ExecuteCodeAction
Hierarchy
-
Action
- ExecuteCodeAction
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Instantiate the action
Parameters
-
triggerOptions: any
defines the trigger options
-
func: (evt: ActionEvent) => void
defines the callback function to run
-
-
Parameters
-
evt: ActionEvent
Returns void
-
-
-
-
Optional condition: Condition
defines the trigger related conditions
Returns ExecuteCodeAction
-
Properties
funcSearch playground for func
The callback function to run.
Type declaration
-
-
Parameters
-
evt: ActionEvent
Returns void
-
-
on Before Execute ObservableSearch playground for onBeforeExecuteObservable
An event triggered prior to action being executed.
triggerSearch playground for trigger
Trigger for the action
trigger OptionsSearch playground for triggerOptions
the trigger, with or without parameters, for the action
Methods
executeSearch playground for execute
-
Execute the action and run the attached code.
Parameters
-
evt: ActionEvent
Returns void
-
get Trigger ParameterSearch playground for getTriggerParameter
-
Gets the trigger parameter
Returns any
the trigger parameter
serializeSearch playground for serialize
-
Serialize placeholder for child classes
Parameters
-
parent: any
of child
Returns any
the serialized object
-
set Trigger ParameterSearch playground for setTriggerParameter
-
Sets the trigger parameter
Parameters
-
value: any
defines the new trigger parameter
Returns void
-
skip ToNext Active ActionSearch playground for skipToNextActiveAction
-
Skips to next active action
Returns void
This defines an action responsible to run code (external event) once triggered.
https://doc.babylonjs.com/how_to/how_to_use_actions