Skip to content
Mikhail Albershtein edited this page Apr 1, 2020 · 4 revisions

Cameras

Cameras are super important for the feel of the game. The idea was to separate the movement from the camera/input - that means that we can change input or camera and without making changes to the movement we will not break the movement.

Cinemanichine

Unity offered us one of the best tools they created - Cinemachine. I'm not going to explain to you how it works because that's a huge topic but I recommend that you use it for your camera. It's easy to set up and customize

Available cameras

I created 3 example cameras:

  • Normal 3rd person camera
  • Side view
  • Top-down view

You can find them in Resources\Prefabs\Cameras
Camera Prefabs

Adding the camera

To add the camera you have to follow these steps:

  • Add MainCamera prefab to the scene
  • Add CameraManager prefab tp the scene
  • Add camera prefab you want to the scene
  • Configure your camera so it will follow the player

Camera Prefabs