Setting up Virtual Cameras | Cinemachine | 2.4.0
docs.unity3d.com
    Show / Hide Table of Contents

    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 Cinemachine > Create 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.

    Adding a Virtual Camera to a Scene. Note the Cinemachine Brain icon next to the Main Camera.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023