0
\$\begingroup\$

On Unity 2020.3.24f1:

  • I created a 2D Core Project and changed to build on any Android device.
  • Added a simple 2D Circle Sprite to my Scene.

The Problem:

I want my Game to run in 9:16 aspect ratio all the time. If the device screen has another aspect ratio letterboxing will do fine. But running the game on my Redmi Note 10 with screen dimensions of 1080x2400 stretches the circle vertically.

Display on Device

I tried this script which is basically the same as the script on this site. When I use 9:16 aspect ratio (in the script) no letterboxes are appearing. But when I change to 16:9 (in the script) with my device being in portrait mode there are letterboxes but the circle is still stretched.

Widescreen

I searched the web for around 4 hours tried everything I found and checked every option in the project settings but can't get this to work.

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

I had a wrong understanding of how Unity Remote 5 works. When running the game in the editor Unity will use (as usual) the resolution/aspect ratio set in the Game panel of the editor then just mirror it to the connected device. So adding a custom resolutio/aspect ratio with the same dimensions as the device will fix this problem.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .