I strongly suggest using Cinemachine
https://unity.com/unity/features/editor/art-and-design/cinemachine
You can install it from package manager, then simply create a vCam and set it to target you character and follow your character.
Cinemachine is incredibly powerful you can create complex orbital cameras, cameras that dolly while keeping multiple targets in frame, etc. all with zero code and runs very efficiently in my exp.
You can install it from package manager, then simply create a vCam and set it to target you character and follow your character.
Cinemachine is incredibly powerful you can create complex orbital cameras, cameras that dolly while keeping multiple targets in frame, etc. all with zero code and runs very efficiently in my exp.