Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

When I build my game for mobile the aspect ratio looks as if it were on the PC

Discussion in 'Getting Started' started by Vennnot, Oct 16, 2019.

  1. Vennnot

    Vennnot

    Joined:
    Jun 21, 2017
    Posts:
    8
    Basically title. Inside of the editor I have already changed the settings 10 times to no avail. Aspect ratio is set to 9:16 on game camera(don't know if this is the most optimal for mobile across all platforms). I am building for an android device if it is relevant.

    On player settings default orientation is set to portrait and I have disabled resolution scaling mode. Aspect Ratio Mode is in Native. Whenever I build and run my game it looks as if it were a desktop game on a portrait screen. Incredibly small and uncomfortable. On the game and editor views it doesn't look like this at all. I don't know what to do.
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    I don't do a lot of mobile testing, but whenever you run your build on a PC it saves the resolution settings used to player prefs for use next time. So the default settings are only used once, even if you produce a new build. I'd assume the same is true on mobile, so you'd need to delete those on the device to test new defaults.