Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

cinemachine controls the camera completely

Discussion in 'Getting Started' started by unity_9U3XM3cR4-JK1g, May 21, 2022.

  1. unity_9U3XM3cR4-JK1g

    unity_9U3XM3cR4-JK1g

    Joined:
    May 21, 2022
    Posts:
    1
    hi everyone

    cinemachine controls the camera completely, which prevents me from controlling the camera's features with an external code

    anyone knows the solution?

    thanks
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    6,006
    Cinemachine doesn't need to control the camera completely. Aim controls the camera's rotation, and Body controls the camera's position. If you put "Do Nothing" in the vcam's Aim and Body sections, then CM will not control the camera at all, and your script can drive the vcam completely. Don't try to drive the main camera. Instead, drive the vcam with your script and the vcam will drive the camera.
     
unityunity