Class InterpolateValueAction
Hierarchy
- Action
- InterpolateValueAction
Index
Constructors
constructor
Instantiate the action
Parameters
triggerOptions: any
defines the trigger options
target: any
defines the object containing the value to interpolate
propertyPath: string
defines the path to the property in the target object
value: any
defines the target value at the end of the interpolation
Optional duration: number
defines the time it will take for the property to interpolate to the value.
Optional condition: Condition
defines the trigger related conditions
Optional stopOtherAnimations: boolean
defines if the other scene animations should be stopped when the action has been triggered
Optional onInterpolationDone: (() => void)
defines a callback raised once the interpolation animation has been done
Returns void
Returns InterpolateValueAction
Properties
durationSearch playground for duration
Defines the time it will take for the property to interpolate to the value.
on Before Execute ObservableSearch playground for onBeforeExecuteObservable
An event triggered prior to action being executed.
Optional on Interpolation DoneSearch playground for onInterpolationDone
Type declaration
Defines a callback raised once the interpolation animation has been done.
Returns void
on Interpolation Done ObservableSearch playground for onInterpolationDoneObservable
Observable triggered once the interpolation animation has been done.
property PathSearch playground for propertyPath
Defines the path of the property where the value should be interpolated
Optional stop Other AnimationsSearch playground for stopOtherAnimations
Defines if the other scene animations should be stopped when the action has been triggered
triggerSearch playground for trigger
Trigger for the action
trigger OptionsSearch playground for triggerOptions
the trigger, with or without parameters, for the action
valueSearch playground for value
Defines the target value at the end of the interpolation.
Methods
executeSearch playground for execute
Execute the action starts the value interpolation.
Returns void
get Trigger ParameterSearch playground for getTriggerParameter
Gets the trigger parameter
Returns any
the trigger parameter
serializeSearch playground for serialize
Serializes the actions and its related information.
Parameters
parent: any
defines the object to serialize in
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 To Next Active ActionSearch playground for skipToNextActiveAction
Skips to next active action
Returns void
This defines an action responsible to change the value of a property by interpolating between its current value and the newly set one once triggered.
https://doc.babylonjs.com/how_to/how_to_use_actions