Blindy
Blindy

Reputation: 67447

How to make controls overlap in Godot?

Specifically I'm trying to make a progress bar show custom text, but since it doesn't support that I'd like to overlap a label on top of it and have it display my custom text.

In XAML for example, that could be achieved by something like:

However I don't see the equivalent of Grid in Godot's layout controls. So short of manually positioning controls on top of each other, how would I achieve something like the above?

Upvotes: 0

Views: 50

Answers (1)

Blindy
Blindy

Reputation: 67447

As it turns out, MarginContainer behaves as a XAML Grid that overlaps all its children, even applying its margins to them all. Exactly what I needed!

Upvotes: 1

Related Questions