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 ...

Get Unity 5.x Animation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.