cocos_add_camera
Attach a camera to a node in Cocos Creator for minimap or split-screen functionality. Configure projection type (orthographic or perspective) and camera properties to control scene rendering.
Instructions
Attach cc.Camera. projection: 0=ORTHO, 1=PERSPECTIVE. For minimap/split-screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| projection | No | ||
| priority | No | ||
| ortho_height | No | ||
| fov | No | ||
| clear_color_r | No | ||
| clear_color_g | No | ||
| clear_color_b | No | ||
| clear_color_a | No | ||
| visibility | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |