Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DaveMS | |
Old Version | Published before Godot 3 was released. |
Hi!
i’m using Godot Engine since few weeks now, and I do appreciate the simplicity of the scenes system in combination with the elegance of GScript, to which I get used with ease.
There is anyway a point I really fail onto: to build a GUI that is completely screen size indipendent.
I understand how ‘anchors’ and ‘margin’ work and I tested every of the Control nodes (such as VBoxContainer, CenterContainer, etc…), but when I play with that properties withinh the inspector, it seems that (in some circumstancies) changing the parent propertis affects the children settings and/or viceversa: an annoing reset that make my efforts useless.
I woud like to make a GUI like that:
…and this is what I tried:
Please, can you help?
Thanks.
changing the parent propertis affects the children settings and/or viceversa
Which settings do you change? How does your gui look like before and after the reset? How are your Size Flags of the VBox’ children set?
rolfpancake | 2017-12-14 08:52
Anchor settings (Begin, End, Center or Ratio), which a set to “Ratio”, got reset to “Begin”.
Label’s font size, which I scaled down to 0.5, got reset to 1.
This is the editor appearance:
while the emulator shows this:
DaveMS | 2017-12-14 18:48
Thanks for clarification. I will try to reproduce this on my own.
rolfpancake | 2017-12-16 10:23