2D Camera Follow Player

Use Cinemachine.

If you are looking for Cinemachine, install it from the package manager like you did with the input system.

Reference Video: https://www.youtube.com/watch?v=mWqX8GxeCBk

Steps:

  1. Right click in the scene menu -> Cinemachine -> Pixel Camera

  2. Drag the player GameObject in the scene into the Camera's "Follow" target

Deadzone width and height refer to the area the player can move around in before the camera moves.

Last updated