How to do it...

To mix animations using layers and masks, follow these steps:

  1. Create a new 3D project and import the Mixing Unity Package, as well as the FBX files Swat@firing_rifle.fbx and Swat@toss_grenade.fbx.
  2. Then, from the Project panel, open the mecanimPlayground level.
  3. We need to configure the Animation Clips. Select the Swat@firing_rifle asset in the Project panel.
  4. Select the Rig section. Change Animation Type to Humanoid, and Avatar Definition to Create From this Model. Confirm this by clicking on Apply:
  1. Now, activate the Animations section. The firing_rifle clip should be selected; click on the Clamp Range button to adjust the ...

Get Unity 2018 Cookbook - Third Edition 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.