cocos_add_tiled_map
Attach a TiledMap component to a node in Cocos Creator scenes to integrate tile-based maps for 2D game development.
Instructions
Attach cc.TiledMap component. Use cocos_add_tiled_map_asset to import first.
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_add_tiled_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| tmx_asset_uuid | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |