A downloadable project for Windows, macOS, and Linux

A prototype that demonstrates dynamic screen settings for game area and display window. If game screen and display window's aspect ratios are different, they will display border boxes. Game screen rotation is fully integrated so the game screen can fit onto any display orientation. Change the display's aspect ratio, the resolution options will change. Full screen mode can be toggled on and off.

This screen change option is idea for games that rely on static resolution and aspect ratio, which is commonly used.

Keep in mind that a stock screenshot is used to demonstrate the prototype's functionality and keep consistent with orthographic size, based on aspect ratio and rotation of game screen.

---------

To properly have the screen settings applied, it is strongly recommended that you make a coroutine to wait until the end of frame for each change for screen resolution, camera, and canvas adjustments.

https://docs.unity3d.com/ScriptReference/Screen.SetResolution.html

https://docs.unity3d.com/ScriptReference/Camera-aspect.html

https://docs.unity3d.com/ScriptReference/WaitForEndOfFrame.html

Download

Download
DynamicUIAspectRatio_V01_Win.zip 21 MB
Download
DynamicUIAspectRatio_V01_Win64.zip 24 MB
Download
DynamicUIAspectRatio_V01_Linux.zip 39 MB
Download
DynamicUIAspectRatio_V01.app.zip 33 MB

Leave a comment

Log in with itch.io to leave a comment.