ChildrenSize||doc136559

September 20, 2022

Format

VerticalLayoutContainer.ChildrenSize

Describe

The child control size of the vertical layout. When controlchildrensize of a vertical layout is true, the size of all child controls of the layout will be adjusted to this value.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the vertical layout control for testing according to the name
local container = APIRootWindow.APIVerticalLayoutContainer

--Set the size of the subset control for the vertical layout control
container.ChildrenSize = Vector2.new(50,50)