Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Move Virtual Camera even when not rendering anything

Discussion in 'Cinemachine' started by Epsilon_Delta, Sep 9, 2022.

  1. Epsilon_Delta

    Epsilon_Delta

    Joined:
    Mar 14, 2018
    Posts:
    258
    Cinemachine Brain does not register the camera that has the culling mask set to nothing. How can I bypass this? I need to reset (smoothly) my camera to another position while rendering nothing (other (non-cinemachine) camera is rendering at this moment).

    Currently I use CinemachineBrain.SoloCamera to force this behavior, but it feels hacky.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Yes, using Solo is hacky. Can you make a new layer just for vcams and set your culling mask to that instead of nothing? Put all your vcams on that layer, and make sure that your CM-controlled camera always includes that layer in the culling mask.
     
    Epsilon_Delta likes this.
  3. Epsilon_Delta

    Epsilon_Delta

    Joined:
    Mar 14, 2018
    Posts:
    258
    Thanks, this works. However still feels hacky. I want to render nothing, not render empty layer even tough the result is the same, but I have one less layer for other usage. This cinemachine layer honoring feature could be disableable in the Brain component. I personally have never utilized it, quite the opposite, always had to work around it.
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    That's a good idea