+1 vote

How can I resize every Controlnode, so that everything is bigger but still on the screen, and so that the whole Controlstructer still works like before?

So I search something wich does the something like the scale property in a Node2d.
But the rect->scale property in a control node effects that things get out of the screen, which isnt good in userinterfaces.

Example: https://postimg.cc/bsbWtyZd

If you need more informations, please write this, to.

in Engine by (378 points)
edited by

I recommend looking into the anchor properties. Using them, you can tell a Control node how large it should be proportional to the size and location of its parent Control node.

Please post some images.

The anchor just tells the Controlnodes how it changes on different devices/monitors, but my case is different, because I just want to make it bigger forever (please tell me, if I misunderstood something)

@JimArtificer How can I add a image from my computer to this question?

2 Answers

+1 vote
Best answer

If they are set properly, you can go to Size Flags and play with the Fill and Expand flags. Then you can increase the topmost Control.rect_size and the children will scale accordingly. This works well when using Containers.

by (92 points)
selected by
0 votes

Scaling Control nodes is mainly intended to be done for animation purposes. To scale a project to multiple resolutions, use the 2d stretch mode as explained in Multiple resolutions.

by (12,825 points)
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.