To use Cinemachine ClearShot to switch cameras to keep the player in the shot, simply perform the following steps:
- Either work from the copy of the first recipe in this chapter or create a new 3D project, import the BasicScene_completed.unitypackage package, and, finally, add the ProBuilder package to your project.
- Open the scene provided, containing modernHouse and Ethan – the ThirdPersonController from the Standard Asset package.
- Un-child the Main Camera from Ethan. This is because we need this camera free for Cinemachine to take control of it.
- Install the Cinemachine package using the Unity Package Manager (to get the most up-to-date version).
Important note: If you are upgrading from the Asset Store version of Cinemachine, delete the Cinemachine asset from your project BEFORE installing the version from the Package Manager.
- Add a Cinemachine ClearShot camera GameObject to the scene (navigate to Cinemachine | Create...