Objective: Update the camera system so it always follows the player
In this final article on the Unity 2.5D Platformer, I will add a Cinemachine virtual camera to the Main Camera so the game view always follows the player.
We first need to add the Cinemachine package to Unity.
Then, we can add a Cinemachine Brain to the Main Camera.
After this, we can add a virtual camera and set the target and follow to the player.
Next we can see the Cinemachine virtual camera and make adjustments to its location.
Then, we can check this in action.
One more adjustment is to fix the virtual camera offset to better follow the player if he is hanging on a ledge or climbs a ladder.
Thank you for your time!