Firstborn/Library/PackageCache/com.unity.cinemachine@2.8.9/Documentation~/CinemachineSetUpVCam.md
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

1.2 KiB

Setting up Virtual Cameras

In your project, organize your Scene Hierarchy to have a single Unity camera with a CinemachineBrain component and many Virtual Cameras.

To add a Virtual Camera to a Scene:

  1. In the Unity menu, choose GameObject > Cinemachine > Virtual Camera.
    Unity adds a new GameObject with a Cinemachine Virtual Camera component. If necessary, Unity also adds a Cinemachine Brain component to the Unity camera GameObject for you.

  2. Use the Follow property to specify a GameObject to follow.
    The Virtual Camera automatically positions the Unity camera relative to this GameObject at all times, even as you move it in the Scene.

  3. Use the Look At property to specify the GameObject that the Virtual Camera should aim at.
    The Virtual Camera automatically rotates the Unity camera to face this GameObject at all times, even as you move it in the Scene.

  4. Customize the Virtual Camera as needed.
    Choose the algorithm for following and looking at, and adjust settings such as the follow offset, the follow damping, the screen composition, and the damping used when re-aiming the camera.