Cinemachine camera follow
Oct 21, 2021
Objective: Use Cinemachine to follow the player through the dungeon.
Open the package manager from Unity window menu and search for Cinemachine. Install the latest version of Cinemachine, which will add a new menu in Unity.
Use this menu to add a new virtual camera called CM_Follow_Cam as a child of Player, see below.
Select CM_Follow_Cam and adjust the position to X 0, Y 0, Z -10. Drag the Player into the follow slot of the CinemachineVirtualCamera component.
The CinemachineBrain component was automatically added to main camera. The new CM_Follow_Cam was assigned as the live camera.