Search Unity

Question Cinemachine unwanted delay for VirtualCamera when a scene loads

Discussion in 'Cinemachine' started by JustMeBrian, Oct 23, 2022.

  1. JustMeBrian

    JustMeBrian

    Joined:
    Jul 13, 2014
    Posts:
    16
    So in my project I have one CameraManager that has a camera and it has been set as a dontdestroyonload object so it is persistent. In every scene I use a virtual camera. I've an issue however when de game scene starts it takes 2sec before the VirtualCamera is activated and the transition of the camera to that position happends.

    I tried a bit of everything:
    -Changing the update of the brain
    -inherit position on the virtual camera checked
    - vcam.ForceCameraPosition
    - vcam.InternalUpdateCameraState

    Do I need a camera with a brain in every scene instead of trying to manage 1camera that is persistent?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    One persistent camera should be fine. What is your default blend setting on the CM Brain?
     
  3. JustMeBrian

    JustMeBrian

    Joined:
    Jul 13, 2014
    Posts:
    16
    It was set on "Cut", but I found the issue. It was caused because I use additive scenes for my game and the newly loaded scene was not the active scene. Unloading the loading bar scene fixed it.
     
    Yuchen_Chang and Gregoryl like this.