cocos_add_editbox
Add text input fields to Cocos Creator UI nodes for user interaction, configuring input modes, placeholders, and length limits to create interactive game interfaces.
Instructions
Attach cc.EditBox. input_mode: 0=ANY, 6=SINGLE_LINE. -1=unlimited length.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| placeholder | No | Enter text... | |
| max_length | No | ||
| input_mode | No | ||
| return_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |