cocos_add_loading_spinner
Add a loading spinner with optional text to Cocos Creator scenes. Create visual feedback during loading states using a rotating icon and customizable caption.
Instructions
Centered rotating icon + optional caption.
Pass sprite_frame_uuid to get the rotation animation; pass
None for a text-only indicator. rotation_period is one
full 360° revolution — 1.0s is the iOS/Material default cadence.
Tip: generate a spinner sprite via
cocos_generate_asset(prompt='loading spinner icon, radial', style='icon') then pass the returned sprite_frame_uuid here.
Returns {spinner_node_id, icon_node_id, label_node_id, rotation_component_id}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scene_path": "<scene_path>",
"parent_node_id": "<parent_node_id>"
},
"name": "cocos_add_loading_spinner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| parent_node_id | Yes | ||
| sprite_frame_uuid | No | ||
| text | No | Loading... | |
| icon_size | No | ||
| rotation_period | No |