Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Feedback Cinemachine brain won't connect with virtual cameras

Discussion in 'Cinemachine' started by marquini, Dec 5, 2019.

  1. marquini

    marquini

    Joined:
    Jan 27, 2018
    Posts:
    4
    This might be a rookie mistake but, everything was working nice and fine with the cameras in my scene and then, when saving a seemingly unrelated script my cinemachine brain just kinda gave up and stopped detecting any virtual cameras.
    No compile errors, no warnings, no debug messages.
    I checked in all my other scenes and everything was fine.
    Then I duplicated the problematic scene, deleted the cinemachine brain and virtual cameras, added new ones, and they worked without any trouble.
    Does anyone know what happened there?
    I would like to know if I can fix this, because many of my animations/timelines depend on cinemachine :(

    I'm using unity 2019.1.8f
     
  2. marquini

    marquini

    Joined:
    Jan 27, 2018
    Posts:
    4
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    The CMBrain will only detect vcams that are on the layers not filtered out by the camera's layer mask. This is to support multi-camera setups (e.g. splitscreen). Is it possible that somehow the layers or layer mask got messed up?

    Also FYI you can just copy/paste images directly in the forum post. Much easier :)
     
    marquini likes this.
  4. marquini

    marquini

    Joined:
    Jan 27, 2018
    Posts:
    4
    Thank you, that was the issue, layers were in the incorrect order!
     
    Gregoryl likes this.