Search Unity

Top and bottom black gap on Samsung Galaxy S8

Discussion in '2D' started by drorriov, Dec 4, 2018.

  1. drorriov

    drorriov

    Joined:
    Jun 7, 2014
    Posts:
    42
    Using latest version of Unity 2018.2

    In two different projects when exporting game to Android i see Top & Bottom gaps on the device.
    I think it started after updating Android Tools SDK. In the past i did showed up correctly (full screen).
    I tried different approaches like manually settings aspect ratio to 2.1 or 1.86 in Player Settings.
    Playing with canvas settings, still same result.
    See attached images.

    Untitled-1.png

    Canvas:
    Untitled-2.png
     
  2. olegekbondar

    olegekbondar

    Joined:
    Dec 28, 2016
    Posts:
    1
    have you managed to solve the issue?
     
  3. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,608
    @olegekbondar

    Well I doubt you get a reply to a necro...

    Google reveals phone has a very tall aspect ratio of 18.5:9 (2.0555)

    Also, there are threads like this, did you check this for example?:
    https://answers.unity.com/questions/1459629/black-bars-on-wide-aspect-ratio-phones.html

    Also, another thing... in OP screenshot, Canvas has been setup for 16:9 AR, it might also be possible that he/she had a some canvas element that wasn't anchored to corners, and when used in different aspect ratio, it revealed empty space behind.
     
    Last edited: Nov 10, 2020
unityunity