Search Unity

Bug UI being pushed up by safe zone - on build only

Discussion in 'iOS and tvOS' started by Project-NSX, Feb 20, 2024.

  1. Project-NSX

    Project-NSX

    Joined:
    Apr 11, 2019
    Posts:
    25
    Hello,

    I've encountered an issue on iOS builds only (it does not occur on device simulator or android phones at all).
    The issue is that we have our UI all laid out and it appears correctly in play mode and on android devices.

    When the project is built and pushed to iPhones, the safe zone in landscape mode accounts for the home bar, and shifts our entire UI up.

    This is an issue because we have no code anywhere in the scene that modifies rect transforms to account for the safe zones, but it's happening anyway. This happens in Unity 2022.3.14f1

    Just wondering if anyone else has encountered issues like this with iOS in landscape mode, and how you fixed it?

    Thanks for reading!
     
    Last edited: Feb 21, 2024
  2. Project-NSX

    Project-NSX

    Joined:
    Apr 11, 2019
    Posts:
    25
    Update:
    This seems to only be happening with screen space camera canvases. To get around it we've switched the canvas to screen space overlay