Search Unity

Can Cinemachine Virtual Cameras have their own culling masks?

Discussion in 'Cinemachine' started by DChap_Salty, Jul 12, 2019 at 2:15 AM.

  1. DChap_Salty

    DChap_Salty

    Joined:
    Dec 4, 2018
    Posts:
    1
    I have a Main Camera w/ Cinemachine brain. 2 Virtual cameras, A & B. I have a car model on its own "car" layer. I want virtual cam A to render the car, but when I cut to cam B, I want it to not render the car.

    Can I do this?

    It seems the Culling Mask option only exists on the Cinemachine Brain and I cannot adjust the culling mask for each virtual camera.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,609
    That's correct. The culling mask is a feature of the Camera, not of the virtual camera. You would have to make a custom script to change the culling mask when vcam B activates, and change it back when vcam B deactivates.