Hello Guest

Author Topic: Animation Total Length  (Read 3959 times)

stuntboots

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Animation Total Length
« 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!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Animation Total Length
« Reply #1 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.