Resize entire game to a different resolution?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Macryc

Hi All! Is it possible to change the resolution of the project in the settings (or otherwise, in the code) so that it affects all nodes and keeps their scale/aspect ratio?
My game is set to 1920x1080. If I resize it to say 1280x720 in project settings this doesn’t affect control nodes (labels etc) - those remain at 1920x1080 and, in effect, get cropped out. Is there even a way to bulk-resize the entire viewport?

:bust_in_silhouette: Reply From: Calinou

You can set the stretch mode to 2d and stretch aspect to expand in the Project Settings, while keeping the project resolution to 1920x1080. See Multiple resolutions in the documentation for more information.

Thanks. That I knew. What i am wondering is whether there is a way to set project resolution to something smaller than HD and have everything resize to that smaller resolution (including control nodes/labels/sprites/etc)?. When i resize to 1600x900 the game resizes all right and my control node which holds GUI elements (and which inherits the resolution of the project in settings) also resized but its children (labels) remain at 1920x1080 and thus get clipped out.

Macryc | 2020-03-10 13:20

If you change your project’s base resolution, you’ll have to move Control nodes by hand to match the new resolution, unfortunately.

Calinou | 2020-03-10 18:04