Error: The animator is not leaving a transition...

Kirshor

Member
mLocomotion = GetComponent<UltimateCharacterLocomotion>();
mLocomotion.enabled = false
; =>It's Ok
then call:
mLocomotion.enabled = true; =>sometimes it gives the following error:
Error: The animator is not leaving a transition. Ensure your Animator Controller does not have any infinite loops.
(error in file AnimatorMonitor, line 288)

I used ThirdPersonController supplied by Opsive as a my AnimatorController. So i'm sure the Animator Controller does not have any infinite loops.

Do You have any idea ?
 
Did you apply any changes to the animator controller, or do you use it as is? Can you reproduce it in the demo scene? This would be the best for us to analyze it.
 
Due to the time near the deadline, I could not spend much time to find the cause of the above error, so I used another method instead.
I changed the way the character stops moving. I used mLocomotion.TimeScale =0
And now everything is fine.
 
Last edited:
The exact cause of the above error was that I integrated the animancer pack into the opsive wrong. After removing the animancer, the problem is gone. I'm not saying it's the animancer's fault but my integration's fault. my mistake.
 
Top