Updating the animator controller to include the face animation
In the previous chapter, we created masks for various parts of the body to add variation to our stock animation sequences. The animator controller connected to the zombie in our current scene is set up the same way, there are just a few changes that need to be made:
- Click on the
zombie_f
game object in the Hierarchy panel to select it. - Click on the Animator tab in the top center of the Unity interface to switch to the Animator panel.
- In the top left of the Animator panel, click on the Layers tab to activate it.
The zombie's animator controller consists of a base layer containing two states: Idle and Walk. We need to create a new layer for the face animation:
- In the top left of the Animator panel, click on the + symbol in the Layers tab to create a new layer.
- Rename the layer
Face
. - Set the layer's Weight field to
1
. - In the new Face layer, click on the radio button next to the Mask field and select
z_Head
from the list. - Leave...