TobyWils

Is there a way to get the duration (time) of an animation before it as been started?

I see TrackEntry::getAnimationTime(), but I don't have a track yet. I want to know the duration before the animation is started.

Is there a way to get this?

Is there a way to set the animation and then immediately delete it so it won't run of interfere with anything currently playing?
TobyWils
  • Postovi: 22

Mario

Animation::getDuration() is what you want. You can get an animation by name from a SkeletonData instance via SkeletonData::findAnimation().
Avatar
Mario

Mario
  • Postovi: 2827

TobyWils

Works like a charm. Thanks!
TobyWils
  • Postovi: 22


Natrag na Runtimes