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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |