Invalid time range for Transition exit time condition

Hello, I know that is an old question but I don’t understand when it’s happen, I manage the Time.timeScale from 0 to 1 in my videogame and I use “ForceStateNormalizedTime” method on some animation components in the script code.

There is a best practice to catch and manage this error ? It’s a critical exception or can I leave as it is during the game ? Thank you very much, Cheers…

I’m using
Unity 2019.4.1f1
Visual Studio 2017
Win32 .net 4 mono

1 Like

This error is not really easy to trace, so I’m with you on how could it be done to resolve this.

1 Like

Anyone? This is making tests fail. And no, we don’t want to mute errors in tests

This is caused by the animation controller in the scene, On one of the transitions " the arrows within the controller". Click one of these and check its “Has Exit Time” checkbox. Then adjust the Transition Duration and or Exit Time values within the controller’s transition.

This is a common error in Unity 2018.4 I have found but did not have this issue in Unity 2017 and some other versions of 2018. Might want to check the unity editor patch/fix notes or changelogs to see if you can find out for sure.

1 Like

I also came across this error. For me, it came up when i tried to crossFade an animation from script using invalid hash values. When hashing animator clips always use Animator.StringToHash function.
Hope that might help someone.