Aspect Ratios + Resolutions
Last updated
Last updated
Resolutions
are handledAny time it is necessary to get an array of Resolutions
, this Get
function is used:
As you can see, the second one is supplemented with the variable from the SaveGame
file, in case you are not satisfied with standard Unreal Engine Resolutions, you can get help from that array variable.
Aspect Ratios
in this Menu projectI should start with mentioning that Aspect Ratios
is a feature that started as experimental, and then it was decided to improve it and keep it.
It is half-automatic. Resolutions
is that part that will be handled automatically, when manual part is Ratios
. Those 16:9
4:3
1:1
you see, should be added to the array variable in SaveGame
by hand(unfortunately):
So if you would have lets say 1280x1024
but there is no 5:4
in your Ratio Selector
, then player will never be able to choose it.
Once I got to the point of publishing this project to the Marketplace, the realization came that it is quite doable to make this automatic as well, make the Ratios
system compose its array based on provided Resolutions
, but it will(probably) come later as an update.
For now, just google popular aspect ratios(there are not so many of them really) and add them to that array.
Aspect Ratios
and go with a plain-simple all-in-one Resolutions
I've put two variations of Resolutions
functionality on my Screen Page
, you can swap between those in less than a minute.
both Resolutions
can't live up together, you have to disconnect one you don't want
On the Page Screen find Selector for All Resolutions
and go to its Visibility setting. It Collapsed
, change it to Visible
. Other Selectors
for Aspect Ratio
and Resolution
set to the opposite - Collapsed
, so only one of those resolution widgets would be present in the game:
Switch to the Event Graph
, remove connections for one set of resolutions and connect for the other:
Now it should work.