title: Get animation length - Unity
body: <p>I need to yield for the length of my animation that is in the base layer and named "TurnAround". It makes the character display an animation of them turning around. How do I get this turnaround? Then How do I get the time length?</p>
  
  <p>Is Turnaround an AnimationState? Is it an AnimationStateInfo? It is one of the animations in Animator with transitions. </p>
  
  <p>I have <code>anim = GetComponent&lt;Animator&gt;();</code> to get the Animator. I'm looking at <code>turnAround = anim.getCurrentAnimatorStateInfo</code> but don't think that is quite right.</p>
  
  <p>Thanks</p>