API Docs for:
Show:

Component_FieldAnimation Class

Module: gs

Executes a field-animation. A field-animation animates a certain property of the game-object as long as it is a number-property.

Item Index

Properties

Methods

start

(
  • Value
  • field
  • duration
  • easingType
  • [callback]
)

Starts the field-animation.

Parameters:

  • Value Number

    The target value.

  • field String

    The name of the field/property.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An 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