Search Unity

Doubt on resolution

Discussion in 'UI Toolkit' started by zyonneo, Jan 9, 2020.

  1. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
    I read on a note that is given below in the image

    In order to view the Iphone 6 resolution as in game view and taking build it should be like 750 x 1334(Width x Height).Then only it will be shown like a portrait mode.
    If I try from the text it will look like a landscape view.Any explanations?
     
  2. BinaryCats

    BinaryCats

    Joined:
    Feb 8, 2016
    Posts:
    317
    With phones you can rotate them (in real world). Some games are played landscape and some can be played in portrait mode, some in both

    If you want your game to be played in landscape (width > height) the resolution would be 1334 x 750:
    upload_2020-1-9_7-51-15.png

    if you want your game t be played in portrait mode (height > width) you need to swap the values around, so 750x1334:
    upload_2020-1-9_7-52-12.png
     
    zyonneo likes this.
  3. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
  4. BinaryCats

    BinaryCats

    Joined:
    Feb 8, 2016
    Posts:
    317
  5. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
    I
    Srry did not understand that.Is it possible to stretch a scroll view in x-axis whose parent contains vertical Layout?I cant change because in the inspector 'some values are controlled by Vertical Layout Group'.If I could do that then I could stretch according to different screen sizes.