#Looking for UI Help

1 messages · Page 1 of 1 (latest)

lost kite
#

Trying to create a UI similar and I have two questions, does anyone know how to recreate that windowed look to the gameplay where it doesnt take up the whole screen and if unity has stuff like vboxes and hboxes

Thank you!

mossy thicket
#

What are vboxes and hboxes?

willow holly
# mossy thicket 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.

lost kite
lost kite
willow holly
#

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 VerticalLayoutGroup and HorizontalLayoutGroup (also GridLayoutGroup) components for laying out UI elements automatically.
lost kite
willow holly
#

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.

lost kite