- Home /
How to lock aspect ratio on full screen
I've created a game in a 3:4 aspect ratio, it is a portrait format. If I set the window (mac) to full screen, the game is stretched to the full width of my monitor. I would like to lock my 3:4 aspec ratio, so when I toggle full screen the game stays in the middle inbetween "blank" borders.
Answer by Razputin · Dec 08, 2014 at 07:21 PM
Edit>Project Settings>Player>Supported Aspect Ratios
That won't help since 3:4 isn't a supported aspect ratio and very few people would have a 3:4 resolution available.
Answer by NaeZicco · Mar 05, 2017 at 03:20 PM
Hi rjth!
In Build Settings > Player Settings > Resolution and Presentation you can check on [Default is full screen] ✓ and then check off [Default is native resolution].
Then you can set up width and height in pixels so its not aspect ratio, but for some it might be helpful.
Unfortunately Unity 2019 has a bug when building on Windows raises error: '2,1' is incompatible with attribute maxAspectRatio (attr) float. error: failed processing manifest. errors so this method can't be used
Answer by Mariettas · Jul 21, 2021 at 08:57 PM
The YouTube app for Android mobile automatically adapts the player to the size of the video. Whether it’s vertical, square, or horizontal, the video will fill the screen Official Website. The vertical (portrait) video player matches the aspect ratio of the video - getting taller for square and vertical videos, and shorter for widescreen videos.
Your answer
Follow this Question
Related Questions
Asset Variations for Different Mobile Screen Sizes 1 Answer
Distribute terrain in zones 3 Answers
4:3 aspect ratio 0 Answers
Screen stretch 0 Answers