cocos_add_filled_sprite
Add a filled sprite component to Cocos Creator nodes for creating progress bars, cooldown timers, and radial indicators with customizable fill types and ranges.
Instructions
Attach cc.Sprite with type=FILLED (cooldown timer, radial progress).
fill_type: 0=HORIZONTAL, 1=VERTICAL, 2=RADIAL. fill_range: 0~1 controls how much is filled (e.g. 0.3 = 30% filled).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| sprite_frame_uuid | No | ||
| fill_type | No | ||
| fill_start | No | ||
| fill_range | No | ||
| fill_center_x | No | ||
| fill_center_y | No | ||
| color_r | No | ||
| color_g | No | ||
| color_b | No | ||
| color_a | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |