Animator Ping Ponging Two Animations Bug

Hi,
I have a two animations running via an animator. I have two states, onRun and onIdle. However, I am getting very glitchy results. It seems the animator if switching between animations at a super fast pace.

My transitions are marked, from idle to run with a boolean onRun = true, and from run to idle onIdle = true.

The issue seems to be that often, the two animations are running at once. For instance, at start, onIdle is set to true, onRun is set to false, this is true in the editor. As such I would expect only idle to play, but both play, flipping back and forth at a very high pace.

???

Can you take a few screen shot of your statemachine and transition condition.

Also do you have some kind of script that reset your boolean value, when you are switching from idle to run you need a script that set OnIdle to false when OnRun become true. Or you could use trigger which are reset automaticaly for you.

Hi,
I think the issue was I was adding an animation component to the same object with an animator. Since, I have left it off, and it works.

1 Like