cocos_create_scene
Create a minimal 2D scene with Canvas, UICamera, and essential components for Cocos Creator projects. Provides structured IDs for subsequent scene modifications.
Instructions
Create a minimal empty 2D scene + meta in assets/scenes/.
Includes Canvas + UICamera (cc.Camera) + cc.Canvas + Widget +
SceneGlobals (Ambient/Skybox/Shadows) + PrefabInfo. The Camera's
clearColor is set so a solid sky-blue background is visible
even before any sprite is added.
Returns canonical IDs: {scene_path, scene_uuid, scene_node_id, canvas_node_id, ui_camera_node_id, camera_component_id, canvas_component_id}
These IDs are array-index references into the scene's JSON;
use them as parent_id / node_id in subsequent tool calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_name | No | Game | |
| canvas_width | No | ||
| canvas_height | No | ||
| clear_color_r | No | ||
| clear_color_g | No | ||
| clear_color_b | No |