Search Unity

Change vcam with change main camera culling layer, lost frame problem

Discussion in 'Cinemachine' started by narengenet, Jan 23, 2021.

  1. narengenet

    narengenet

    Joined:
    May 27, 2017
    Posts:
    5
    Hi guys, I have a problem with changing Vcam and change the culling mask of the main camera at the same time.
    I have multiple transparent videos in my scene and when I change my Vcam after the client input a key at the update, I change the culling mask of the main camera.
    Before change Vcam to another, I change the culling mask at the Update method, and before changing the Vcam, I have an empty frame which no video is in.
    These are my screenshots:
    I want to change my Vcam and change the culling mask at the same time.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,720
    You should be able to do this.

    One thing to note: the main camera will only respond to vcams that are in the layers of its culling mask, so make sure that the old and new culling masks both include the layer that the vcams are on.