#Looking for UI Help
1 messages · Page 1 of 1 (latest)
What are vboxes and hboxes?
I would assume that OP is referring to the node types (VBoxContainer and HBoxContainer) in Godot.
If I understand those correctly, they sort of are the equivalent to Unity's LayoutGroups.
yes they are in godot but also most other ui tools, strange unity doesnt have them
to automatically layout things in a vertival/horizontal pattern
To answer your questions @lost kite:
- To achieve this "bordered" look, either anchor your UI elements at the edges of the screen and move them inward. Or parent them to an empty object that's anchored to the entire screen and has an offset on all edges.
- As alluded to previously, Unity has the
VerticalLayoutGroupandHorizontalLayoutGroup(alsoGridLayoutGroup) components for laying out UI elements automatically.
perfect thank you, and sorry how would i make the main game scene smaller doing that?
That being said, don't make your entire game in Unity's UI like it seems to be the case in your sample. The UI introduces unnecessary overhead when used for gameplay - as does the engine when used for only UI.
i see, yea i was hoping there was a way to maybe make the gameplay/cama shrink but i guess prolly not