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

Question Cinemachine Multiple camera stacking, multiple UIs + Single UI

Discussion in 'Cinemachine' started by Dneubern, May 30, 2023.

  1. Dneubern

    Dneubern

    Joined:
    Mar 2, 2019
    Posts:
    24
    Hello all,
    I'm building a multiplayer, and have several cameras and UIs.
    I've followed the Docs https://docs.unity3d.com/Packages/com.unity.cinemachine@2.3/manual/CinemachineMultipleCameras.html and already implemented single UIs for each individual Camera.

    My problem lies on setting a single individual UI that covers the whole screen (A single UI for all players).
    To showcase my problem, imagine a side-screen game for two players, each has his own HUD, but when the game is Paused, a single pause menu is shown.

    When I try to make each camera an Overlay, the loose the ability to have Overlays themselves.
    So how can I stack camera each one with a Overlay, having an Overlay on top?
    When I enable a camera as an Overlay, I loose the 'Viewport Rect' propertiers.

    My current solution is disabling all player cameras, and enabling a single group camera. Which I don't like :(
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Dneubern likes this.