1 package
1. Open Package Manager in the Unity Editor (menu: Window > Package Manager)
2. Find the Cinemachine entry and click Install in the lower right corner.
2.Cinemachine settings
1. To start using Cinemachine, you need to add the Cinemachine 2D camera to the scene by selecting the Cinemachine > Create 2D Camera entry on the top menu bar.
2. A new game object named CM vcam1 (representing Cinemachine Virtual Camera 1) will be created at this time.
4. Follow the protagonist
1. Pull the protagonist directly into Follow to let the camera follow the protagonist
5. Camera Boundary
1. To add Cinemachine Confiner, go to the bottom of Virtual Camera Inspector, click the Add Extension drop-down menu, and select CinemachineConfiner:
2. Boundary settings are as shown below
3. Drag it into the virtual camera