Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug (Case 1298780) SafeArea in Simulator seems to be wrong

Discussion in '2021.1 Beta' started by Peter77, Dec 11, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    When I rotate the screen in the Simulator window, it seems the SafeArea becomes incorrect. Depending on whether the phone is up-side-down there is a gap where I would expect no gap to be.



    Reproduce
    • Open attached project
    • In GameView switch dropdown from "Game" to "Simulator"
    • Select Apple iPhone 11 in list
    • Turn on SafeArea
    • Rotate the screen

    Actual
    The SafeArea changes if the screen is up-side-down.

    Expected
    SafeArea should be consistent.
     
  2. Havokki

    Havokki

    Joined:
    Jun 28, 2015
    Posts:
    118
    Is that because newer iPhones don't have the up-side-down rotation? The scene in your video is also still in landscape mode, so the gap is for the home button (the one shown in 0:18).

    I mean to me it looks as I would expect it to work.
     
    LeonhardP, Peter77 and AcidArrow like this.
  3. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    I think Yozaro is correct, it seems like it's still switched to landscape (look at the horizon of the skybox), in which case the SafeAreas are correct.
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    You're probably right, that makes sense!