Can you smoothly transition when using animatorOverrideController?

I am swapping my idle animations in script using:

animatorOverrideController[“isIdle”] = ANIMCLIP_isIdle[random];

This works but there is an obvious jerk when it swaps, I’m looking for a way to transition from one to another. Is that possible? If not is there any work around?

My own conclusion was to make 2 states for everything, like idleA, idleB, then during the playing of idleA I have an animation event call which swaps idleB, and vice versa. Hence I can have infinite animations because when A plays B is swapping in the background and vice versa (and when the transition happens it sort of tweens them as mecanim does). This actually works nicely despite being annoying to have 2 states in the animation controller, which isn’t so bad. I guess a transition occurring before the swap would still jerk. Either way so far my new AI can be assigned infinite anims which is nice.

That sounds like the only way to work around the problem when using Animator Controllers.

But you might like to check out Animancer (link in my signature) which lets you just transition to whatever AnimationClip you want without needing to set up Animator Controller states or mess around with Animator Override Controllers.

1 Like

thats fantastic man and looks like it would solve my issues! however i intend to sell this AI on the store so i dont want it depending on another asset… but for my personal use i will try your asset, thanks.