cocos_add_safe_area
Attach a safe area component to automatically fit UI elements to device notches and cutouts in Cocos Creator scenes.
Instructions
Attach cc.SafeArea. Auto-fits node to device safe area (notch/cutout).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |