Search Unity

How do I disable a virtual camera and still have it update its follow offset?

Discussion in 'Cinemachine' started by Kev00, Feb 11, 2018.

  1. Kev00

    Kev00

    Joined:
    Dec 6, 2016
    Posts:
    229
    Is there a way to disable a virtual camera and still have it update its follow offset? In other words, I still want the virtual camera to move when it's not the active camera.

    Alternatively, is there a way of switching between virtual cameras without disabling them?
     
  2. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    Change it's priority to like -10, then change it back to its default value when you will need it.
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Yes, that's what the priority system is for. Highest-priority vcam is the active one, all others that are enabled remain in "standby" mode, which means they update but are not actually driving the Unity camera.
     
  4. Kev00

    Kev00

    Joined:
    Dec 6, 2016
    Posts:
    229
    Thanks, I was about to experiment with that. :) I'm finally getting close to completing my hybrid RTS / character orbit camera system.