title: How to set animations "LoopTime" to false from script (Unity 2020.1.15f1)
body: <p>I spent good time trying to find any solution but everything I find seems to be for older versions or something? Basically I want to set an AnimationClip.LoopTime from true to false or vice versa from script.</p>
  <p><a href="https://i.stack.imgur.com/6U6C2.jpg" rel="nofollow noreferrer">small pic of the inspector showing AnimationClip.LoopTime</a></p>
  <p>I want this to let the object finish the currently running animation cycle. The GameObjects Animator.ApplyRootMotion=true to let the animation occur at the current objects position.</p>
  <p>If I just set the Animator to enabled=false like it's advised in some posts, the animation stops right away of course and that leaves the object off position.</p>
  <p>I get the desired info with myAnimator.GetCurrentAnimatorClipInfo(0)[0].clip.isLooping but that doesn't let me set it...</p>
  <p>Somehow it has to be possible to just set looping=false and avoid having to create additional complicated transitions or something with the Animator?</p>
  <p>Any help/hint is greatly appreciated!</p>