O'Reilly logo

Unity 5.x Animation Cookbook by Maciej Szcześnik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To create a smooth blend between walk and run animations, follow these steps:

  1. Import your animated character with Idle, Walk, and Run animations. Walk and Run animations should be done "in place".
  2. Set the animations to Loop Time in the character asset's Inspector in the Animation tab. If your character's rig is set to Humanoid, you may also need to set all the Bake Into Pose options to true for each animation and all the Based Upon options to Original, as shown in the following screenshot:
Settings of in place Idle, Walk and Run animations
  1. Create an Animator Controller for your character.
  2. Drag and drop the Idle animation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required