Day 101: Keeping All Objects In View in Unity
In this article, I’ll guide you through the process of how to maintain a view of all objects in Unity using the Target Group Camera.
We’ll set up a straightforward scene with a capsule character and two cubes.
To create a Target Group Camera, go to GameObject > Cinemachine > Target Group Camera. You’ll notice that a Virtual Camera and a Target Group GameObject have been added to the Hierarchy.
In the Target Group GameObject, click the plus icon to create three slots for our objects, and then drag and drop them into the Target fields.
After that, hit “Play” and see the result.
You can see that the camera automatically adjusts itself to include all three objects in its perspective.