cocos_stack_horizontally
Arrange child nodes horizontally in Cocos Creator layouts with configurable spacing, padding, and vertical alignment options.
Instructions
cc.Layout type=HORIZONTAL — children arrange left-to-right.
align here is the cross-axis: top/center/bottom.
Returns the Layout component id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| spacing | No | md | |
| padding | No | lg | |
| align | No | top |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |