Class SetValueAction
Hierarchy (View Summary)
- Action
- SetValueAction
Constructors
constructor
-
new SetValueAction(
triggerOptions: any,
target: any,
propertyPath: string,
value: any,
condition?: Condition,
): SetValueActionInstantiate the action
Parameters
- triggerOptions: any
defines the trigger options
- target: any
defines the object containing the property
- propertyPath: string
defines the path of the property to set in the target
- value: any
defines the value to set in the property
Optionalcondition: Conditiondefines the trigger related conditions
Returns SetValueAction
- triggerOptions: any
Properties
on Before Execute Observable
An event triggered prior to action being executed.
property Path
propertyPath: string
The path of the property to set in the target.
trigger
trigger: number
Trigger for the action
trigger Options
triggerOptions: any
the trigger, with or without parameters, for the action
value
value: any
The value to set in the property
Methods
execute
-
Execute the action and set the targeted property to the desired value.
Returns void
get Trigger Parameter
-
Gets the trigger parameter
Returns any
the trigger parameter
serialize
-
Serializes the actions and its related information.
Parameters
- parent: any
defines the object to serialize in
Returns any
the serialized object
- parent: any
set Trigger Parameter
-
Sets the trigger parameter
Parameters
- value: any
defines the new trigger parameter
Returns void
- value: any
skip To Next Active Action
-
Skips to next active action
Returns void
This defines an action responsible to set a property of the target to a desired value once triggered.
See
https://doc.babylonjs.com/features/featuresDeepDive/events/actions