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}.
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 |