The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+2 votes

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?

in Engine by (513 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.

by (12,878 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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.