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:
-
ValueNumberThe target value.
-
fieldStringThe name of the field/property.
-
durationNumberThe duration in frames.
-
easingTypeObjectThe 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
