Component_FieldAnimation Class
Executes a field-animation. A field-animation animates a certain property of the game-object as long as it is a number-property.
Methods
start
(
-
Value
-
field
-
duration
-
easingType
-
[callback]
Starts the field-animation.
Parameters:
-
Value
NumberThe target value.
-
field
StringThe name of the field/property.
-
duration
NumberThe duration in frames.
-
easingType
ObjectThe easing-type.
-
[callback]
Function optionalAn optional callback called if blending is finished.
toDataBundle
()
Serializes the path-animation into a data-bundle.
update
()
Updates the field-animation.
Properties
easing
gs.Easing
The easing-object used for the animation.
field
String
The field to animate as property-path.
method
gs.FieldAnimationMethod
The animation-method.
Default: gs.FieldAnimationMethod.SET