Recently I decided to try implementing a script that allows the camera to track multiple objects, panning and zooming to keep them all on the screen at once. Can’t be that hard, can it?
All this logic is for camera movement along a 2D plane only.
First off, we need to keep track of all the objects to track. Let’s start a script: