Search Unity

Change vcam and change main culling layer problem

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

  1. narengenet

    narengenet

    Joined:
    May 27, 2017
    Posts:
    5
    Hi guys,
    I want vcamA be able to cull only layer A and vcamB only cull layer B.
    I switch between vcamA and vcamB by input keyup in update method. I change the main camera culling layers before change last vcam priority.
    This make an empty frame before change vcam which cannot see layerA and layer B.

    I have multiple VideoPlayers at same place which should be seen only by it’s specified vcam.

    Is there any solution to get rid of this empty frame before switch to next vcam?
     
    Last edited: Jan 24, 2021
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    Have a layer C that the vcams are on. Make sure that your culling masks for states A and B include layer C.
     
    narengenet likes this.