Aspect Ratios + Resolutions

How Resolutions are handled

Any 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.


Understanding concept of Aspect Ratios in this Menu project

I 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.

For now, just google popular aspect ratios(there are not so many of them really) and add them to that array.


In case you prefer not to have 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.

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:

before
after

Now it should work.

Last updated