![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | darthdeus |
I have a NinePatchRect
that has a GridContainer
in it which has a bunch of items. The GridContainer
takes care of laying out its children in a grid, but I can’t seem to find a way to get the NinePatchRect
to expand so that it contains the GridContainer
. I’d also like to specify a “padding” so that NinePatchRect
expands a bit more than needed.
Ideally it would look something like this, which I achieved by manually moving the GridContainer
’s transform a bit to the bottom right, and expanding the NinePatchRect
accordingly.
Is there a way to achieve this using Godot’s UI without having to implement all the calculations in scripts?