Skip to content

format

typescript
LayoutGroup.childSize

class: LayoutGroup

description

Restricts the size of child controls in UI layout.

In UI layout, there are times when it is necessary to restrict the size of child controls (such as text, images, etc.) to fit specific layout requirements.

parameter

param_nametypedescription

reture

typedescription
Vector2The restricted size

code example