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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| width | No | ||
| height | No | ||
| fit_width | No | ||
| fit_height | No |