ChildrenSize||doc136562

September 20, 2022

Format

HorizontalLayoutContainer.ChildrenSize

Describe

The child control size of the vertical layout. When controlchildrensize of a horizontal 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 horizontal layout control for testing according to the name
local container = APIRootWindow.APIHorizontalLayoutContainer

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