+1 vote

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?

asked Mar 9 in Engine by Macryc (289 points)

1 Answer

+1 vote

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.

answered Mar 10 by Calinou (6,336 points)

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.

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.