- Home /
What's wrong with the aspect ratio in standalone build?
I want to enforce an aspect ratio of 16:9 for my game (it's not intended to be played on anything other then a desktop computer or notebook, so I designed everything with 16:9 in mind.) I am trying to enforce this aspect ratio with the following player settings:
In the editor, everything looks fine with 16:9:
But however, when I start my built game (on the same machine), it looks like this:
So the aspect ratio is 4:3ish and the image is cropped left and right. Is this intended or a bug? Or might something in my game settings cause this?
I also noted that it's not the same on another machine (which is a desktop PC, so no built in display, just a display connected via HDMI with a native resolution of 1920x1080. The machine I am developing on, where the described behavior can be observerd, is a laptop with a native resolution of 1366x768 (but definetely not 4:3).
Any ideas? Help would be much appreciated!
Answer by cgeopapa · Jun 07, 2017 at 07:04 PM
Try unchecking Default Is Native Resolution and fill the Default Screen Width and Height with a 16:9 resolution, like 1920x1080.
cgeopapa's comment should be converted to answer!
Answer by kornstar83 · Jun 08, 2017 at 09:53 AM
Forcing the desired aspect ratio in your start function should solve your problem, here is a link I found in another question very similar to this,
http://gamedesigntheory.blogspot.ca/2010/09/controlling-aspect-ratio-in-unity.html
Answer by m3rcurio · Aug 05, 2018 at 02:26 AM
On inspector > Standalone Player Options > Suported Aspect Ratios, uncheck only "others".
Your answer
![](https://koobas.hobune.stream/wayback/20220612123637im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to re-anable resolution pop-up when running Unity standalone? 2 Answers
Issues with mouse input after resizing Standalone 1 Answer
Stretch Colliders when changing resolutions ? 0 Answers
aspect ratio vs fixed resolution [HELP PLEASE] 2 Answers
Changing a Project's Name Without Renaming Its Folder 1 Answer