Hello!
I was wondering how could I calculate the framecount of an animation in runtime.
I was reading an old question that concluded in dividing the animation time by 30 but having an 1.3s animation of 16 frames wouldn't give me 16 that is the number that the SkeletonData displays on the animation list.
How could this be done?
Thanks in advance.
Julen.
Well, this was quick, I figured it out 🙂
The Frames of an animation can be achieved like this:
int animationFrames = (int)Mathf.Round(animationDuration * SkeletonData.Fps)