getDuration method

double getDuration()

The duration of the animation in seconds, which is usually the highest time of all frames in the timeline. The duration is used to know when it has completed and when it should loop back to the start.

Implementation

double getDuration() {
  return _bindings.spine_animation_get_duration(_animation);
}