Mecanim Random Animations

Hi, trying to figure out how to play random animations in mecanim.

Say I had 60 animations and wanted to transition from animation 56 to animation 3. How could I do that through code?

It looks as if I would need to create 60 in/out transitions for every animation to every other animation and use an integer property to control the animation. But that’s not practical.

would be nice if I could just play an animation directly. Something like: animator.Play(“RandomAnimation3”)

What about 60 transitions from Any State, one to each random animation? It’s still a lot of transitions, but at least not 60*60.

1 Like

ah that could work. Thanks