cocos_add_layout
Add layout components to Cocos Creator nodes to arrange child elements horizontally, vertically, or in grids with customizable spacing and padding.
Instructions
Attach cc.Layout. layout_type: 0=NONE, 1=HORIZONTAL, 2=VERTICAL, 3=GRID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| layout_type | No | ||
| spacing_x | No | ||
| spacing_y | No | ||
| padding_top | No | ||
| padding_bottom | No | ||
| padding_left | No | ||
| padding_right | No | ||
| resize_mode | No | ||
| h_direction | No | ||
| v_direction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |