cocos_make_fullscreen
Make a node fill its parent container in Cocos Creator for backgrounds, modal backdrops, or full-bleed panels by attaching a cc.Widget component.
Instructions
Attach cc.Widget so the node stretches to fill its parent.
Use for backgrounds, modal backdrops, full-bleed panels. Replaces
the align_flags=15 incantation (top+bottom+left+right bitmask).
Returns the Widget 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>",
"node_id": "<node_id>"
},
"name": "cocos_make_fullscreen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |