Search Unity

Question UI gets separated and stays on Phone screen when casting to monitor

Discussion in 'UGUI & TextMesh Pro' started by karderos, Apr 27, 2023.

  1. karderos

    karderos

    Joined:
    Mar 28, 2023
    Posts:
    376
    My game is built with il2cpp for android, when I use cast screen to my laptop screen, all UI and controls remain visibile on the phone screen and the background becomes black

    meanwhile the background becomes visible on the monitor its being cast to but the UI is completely invisible.

    It seems that the UI remains glued to the phone, while the background is being sent to the cast monitor.

    How to fix this so both the background and UI is displayed on the cast target screen?
     
  2. karderos

    karderos

    Joined:
    Mar 28, 2023
    Posts:
    376
    solved by switching canvas to camera space