addEmptyAnimation method

TrackEntry addEmptyAnimation(
  1. int trackIndex,
  2. double mixDuration,
  3. double delay
)

Adds an empty animation to be played after the current or last queued animation for a track, and mixes to it over the specified mix duration. @return A track entry to allow further customization of animation playback. References to the track entry must not be kept after AnimationState.Dispose.

@param trackIndex Track number. @param mixDuration Mix duration. @param delay Seconds to begin this animation after the start of the previous animation. May be <= 0 to use the animation duration of the previous track minus any mix duration plus the negative delay.

Implementation

TrackEntry addEmptyAnimation(int trackIndex, double mixDuration, double delay) {
  final entry = _bindings.spine_animation_state_add_empty_animation(_state, trackIndex, mixDuration, delay);
  return TrackEntry._(entry, this);
}