Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Button changing camera position?

Discussion in 'Cinemachine' started by MegaCo, Aug 15, 2019.

  1. MegaCo

    MegaCo

    Joined:
    Jan 24, 2018
    Posts:
    84
    I'm trying to get buttons to switch between cameras in my menu so that when I click option or level select the camera will transition to another position looking at something else. I think I need to use the dolly system but not to sure, Right now im just changing the int priority of my different cams in the "on click event" but it does not always work and its a little bit glitchy.
     
  2. MegaCo

    MegaCo

    Joined:
    Jan 24, 2018
    Posts:
    84
    Is there a documentation link?
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Making multiple vcams and changing priority is the right way to do this. What are the glitches you refer to? Maybe you're not managing the priorities consistently. As an alternative, you could try activating/deactivating them, or setting all the priorities the same and calling vcam.MoveToTopOfPrioritySubqueue() to activate the vcam you want.
     
    MegaCo likes this.