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

CinemachineBrain not using virtual camera in scene

Discussion in 'Cinemachine' started by deekpyro, Aug 27, 2019.

  1. deekpyro

    deekpyro

    Joined:
    Oct 16, 2012
    Posts:
    71
    Hey all! We have our own camera system we're using in a project but it's becoming a hybrid system as I am starting to use Cinemachine in it. To do this there's a CinemachineBrain on the camera but most of the time it's disabled. For some reason though when I enable the CinemachineBrain it doesn't know about the CinemachineFreeLook camera in the scene - instead it says there is no active camera. Only when I hit the solo button on the CinemachineFreeLook camera does it seem to recognize and use.

    Is there something I need to have setup besides ensuring the CinemachineBrain has the 'MainCamera' tag in order for the two to properly work together?

    Thanks!
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Sounds like a layer thing. The brain will only see those vcams that are included in the Brain's Camera's culling mask.
     
  3. deekpyro

    deekpyro

    Joined:
    Oct 16, 2012
    Posts:
    71
    Good to know. The brain and the vcam are both set to the Default layer though
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    I'm talking about the Camera's culling mask, not what layer it's on

    upload_2019-8-27_17-3-7.png
     
  5. deekpyro

    deekpyro

    Joined:
    Oct 16, 2012
    Posts:
    71
    Thanks, that was the issue.
     
    Gregoryl likes this.