2D Toolkit Forum

2D Toolkit => Support => Topic started by: stuntboots on December 10, 2015, 06:10:09 am

Title: Animation Total Length
Post by: stuntboots on December 10, 2015, 06:10:09 am
Hiya!

I'm struggling to get the current animation's length in seconds. I use tk2dSpriteAnimator.ClipTimeSeconds, but it seems to be returning the current frame's time rather than the whole animation clip. Is there a way to get the whole animation length?

Thanks!
Title: Re: Animation Total Length
Post by: unikronsoftware on December 14, 2015, 11:47:44 am
ClipTimeSeconds returns the animation clip time in seconds. If it doesn't please provide a repro case in the private support forum and I'll investigate.