getTimeScale method

double getTimeScale()

Multiplier for the delta time when this track entry is updated, causing time for this animation to pass slower or faster. Defaults to 1.

Values < 0 are not supported. To play an animation in reverse, use getReverse.

getMixTime is not affected by track entry time scale, so getMixDuration may need to be adjusted to match the animation speed.

When using AnimationState.addAnimation with a delay <= 0, the getDelay is set using the mix duration from the AnimationStateData, assuming time scale to be 1. If the time scale is not 1, the delay may need to be adjusted.

See AnimationState.getTimeScale for affecting all animations.

Implementation

double getTimeScale() {
  return _bindings.spine_track_entry_get_time_scale(_entry);
}