UI.LayoutPush

static void LayoutPush(Vec3 start, Vec2 dimensions, bool addMargin)

This pushes a layout rect onto the layout stack. All UI elements using the layout system will now exist inside this layout area! Note that some UI elements such as Windows will already be managing a layout of their own on the stack.

   
Vec3 start The top left position of the layout. Note that Windows have their origin at the top center, the left side of a window is X+, and content advances to the X- direction.
Vec2 dimensions The total size of the layout area. A value of zero means the layout will expand in that axis, but may prevent certain types of layout “Cuts”.
bool addMargin Adds a spacing margin to the interior of the layout. Most of the time you won’t need this, but may be useful when working without a Window.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!