cocos_add_toggle
Adds a toggle component to Cocos Creator nodes, enabling interactive checkboxes with custom event handlers for game UI development.
Instructions
Attach cc.Toggle. check_events: list from cocos_make_event_handler().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| is_checked | No | ||
| transition | No | ||
| check_events | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |