O'Reilly logo

Unity Character Animation with Mecanim by Jamie Dean

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

Varying the pickup animation with a Blend Tree

Back in Chapter 3, Interacting with the Environment, we created character interaction with the environment by allowing the player character to pick up objects. A single animation sequence was used for this.

In the game, the character will need to pick up collectables of various sizes and weights. In order to visualize this variation in the game, we will be demonstrating a different use of Blend Trees.

In order to use a Blend Tree, a minimum of two motion clips is necessary. We supplemented the original pickup motion with another pickup animation to suit a heavier object.

Next, we will take a look at the differences between the two animation clips.

Viewing the pickup_heavy animation sequence

Once again, ...

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