Search Unity

How to manage camera for iphone resolution?

Discussion in '2D' started by ktest112233, Mar 9, 2019.

  1. ktest112233

    ktest112233

    Joined:
    Jan 7, 2019
    Posts:
    37
    Hi,

    I am making a mobile game in portrait mode with a base resolution of 750 x 1334 (iPhone 8)
    It looks something like this


    When I switch to iPhone XS Resolution the red walls on left and right side disappear.

    I want to know as to how can I solve this issue. Should I change the Orthographic size of camera if current resolution is that of iPhone XS? Thank you
     
  2. beanie4now

    beanie4now

    Joined:
    Apr 22, 2018
    Posts:
    311
    Learn the Canvas and how anchors work
    anchors.PNG

    these will solve your problem along with the canvas scaler