Is it possible to make truely responsive GUI in Godot?

Like I have buttons with text. Yet if I rescale the game window, the text on the button only gets clipped. There is the ProjectSettings -> Display -> Window -> Stretch. Yet this just shrinks/stretches the game (thus ignoring the rest of the scalable content of the game) In a responsive website, you can scale it down. When it reaches a certain minimum, the buttons change to a different kind of button or the text size is being reduced. Or the text gets distributed over 2 or more lines. See for example the main website of Godot engine. If I shrink it, at a certain point the top buttons are changed to a grouped button. Some of the graphics are hidden. The main text is distributed over multiple lines.

Godot game engine itself does not do so...

It would have been great if the text size gets lower when the text in the button does not fit the screen anymore. Of if an alternative button could be shown.

a month later

Yes it is possible! I put together an example project using VBoxContainer with the Layout "Full Rect", and a few lines checking what layout to use when the signal "resized" is detected and show/hide the best layout for that size. The Label control has a built in word wrap that does all the work for it self.

Download

3 years later