Adding more Avatar masks
In the last section, we used a mask to blend in a different leg animation. Here we will create more Avatar masks to use the two walk sequences together to create more variations:
- In the Project panel, click the
PACKT_Masks
folder to view its contents in the Assets panel.The folder contains two additional Avatar Masks:
z_Arms
andz_HeadChestHands
. - Select the new masks one at a time by clicking them in the Assets panel to see how they are set up:
- For
z_Arms
only, the arms and hands are highlighted in green - For
z_HeadChestHands
, everything except the head, chest, and hands are masked
In order to vary the animation masking for each zombie, we need to set each one up with its own animator controller.
- For
- Click the
PACKT_Controllers
folder in the Project panel. - Select the asset
ch5_3_1
and duplicate it using the keyboard shortcut Ctrl + D (Cmd + D if working on a Mac). - Select
zombie_m2
in the Hierarchy panel. - Drag the controller
ch5_3_2
into the Controller field beneath the Animator...