cocos_set_design_resolution
Configure screen resolution settings for multi-screen game adaptation in Cocos Creator projects, adjusting width, height, and scaling options to ensure consistent display across different devices.
Instructions
Set design resolution for multi-screen adaptation.
fit_width+fit_height=SHOW_ALL; only fit_width=FIT_WIDTH; only fit_height=FIT_HEIGHT.
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": {
"project_path": "<project_path>"
},
"name": "cocos_set_design_resolution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| width | No | ||
| height | No | ||
| fit_width | No | ||
| fit_height | No |