Unity Cinemachine: Experimenting with Target Group Camera

Josh P (Pixel Grim)
2 min readJan 2, 2023

--

Cinemachine target group is useful for keeping multiple objects in the shot. You see these largely used in multiplayer games such as Ultimate Chicken Horse. The camera will zoom in when all the players are close together, but as soon as one player ventures further into the level, the camera zooms far out, ensuring it captures everyone in the frame.

Create a Virtual Camera with a Target Group:

  • In the Unity menu, choose Gameobject > Create Target Group. Unity will create a target group object. The Follow and Look At targets in the Virtual Camera refer to the new Target Group.
  • In the Hierarchy, select the new Target Group object.
  • In the Inspector, click the + sign to add a new item to the group.
  • In the new item, assign a GameObject, and edit the Weight and Radius properties.
  • Create a new virtual camera and set the follow and look at as the new target group created

--

--