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.

Question Render UI on multiple cameras

Discussion in 'UGUI & TextMesh Pro' started by unity_UUpHGU8iffWR7g, Feb 6, 2023.

  1. unity_UUpHGU8iffWR7g

    unity_UUpHGU8iffWR7g

    Joined:
    Dec 5, 2021
    Posts:
    11
    Hey all,

    I have a custom hardware connected to my android phone. I use my main camera to display the scene and a child camera to send a render texture to my custom hardware (another lcd).
    I noticed that the UI display only on my main camera and was wondering if there's a way force UI rendering on all active cameras.
    Alternatively, is there a way to render the main camera both on screen and to render texture?

    Thank you!
     
  2. SocttJame

    SocttJame

    Joined:
    Dec 11, 2017
    Posts:
    5
    1.Create a new camera call UiCamera
    2.Only render ui on UiCamera
    3.Set the uiCamera renderType to Overlay
    4.Add uiCamera to the camera stack of both mainCamera and childCamera
    upload_2023-2-9_22-20-13.png