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

Using cinemachine to look at different objects

Discussion in 'Cinemachine' started by pshawt2, Mar 5, 2018.

  1. pshawt2

    pshawt2

    Joined:
    Mar 24, 2017
    Posts:
    15
    I have a menu system and depending on what the user selects the camera needs to go look at different objects. Is this a good use for cinemachine? A rough outline of how to set this up would be very helpful. I don't understand if I should have a camera for each object and blend between them somehow or if it should be a single camera that I am changing the look at and position of.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Use a single Unity camera.
    Then, make multiple Cinemachine Virtual Cameras, one for each object.
    Enable the appropriate Virtual Camera when the menu item is selected. The Unity camera will be driven by that virtual camera, and by default will blend from one to another as they are activated.

    You can control whether the Unity camera blends or cuts when the new virtual camera is activated. Do this by setting the "Default Blend" property of the CinemachineBrain component of the Unity Camera. You can also set up custom blends for individual vcams, by using the Custom Blends asset in the CM Brain.
     
    bowserscastle likes this.
  3. pshawt2

    pshawt2

    Joined:
    Mar 24, 2017
    Posts:
    15
    This is exactly what I needed. Thank you so much!