cocos_add_sliced_sprite
Add a sliced sprite to Cocos Creator scenes for scalable UI elements. This tool attaches a 9-slice sprite that stretches its center while preserving corners, enabling flexible resizing of buttons, panels, and backgrounds.
Instructions
Attach cc.Sprite with type=SLICED (9-slice). Stretches center, keeps corners.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| sprite_frame_uuid | No | ||
| color_r | No | ||
| color_g | No | ||
| color_b | No | ||
| color_a | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |