Changing how fullscreen works

Howdy!

I’ve been kicking around the idea of attempting to change how fullscreen displays.

Lets say the user’s native aspect ratio is 16:9. If they select a resolution that is 4:3, then go full screen, it will be stretched somewhat to fit the 16:9 screen.

Is there any way I could go about changing this? I’d rather it display the resolution naturally (no stretching/skewing to full the entire screen) and then just fill in the extra space with black (or possibly some selectable color).

(I guess another question would be: would this be desirable? Would you, as a user, rather your fullscreen to not distort resolution and instead fill in non-used space with black? Or, would this simply be annoying?)

Hi, welcome to the forum!

If you are talking purely about GUI, then it should be no problem to make the controls appear in a rectangle in the centre of the screen. The easiest way to do this is to put everything inside a group and then reposition the group depending on the resolution.

The aspect ratio should not be a problem for the main game scene since it is taken into account when calculating the cameras’ fields of view.