cocos_wait_for_preview
Pauses execution after building to ensure assets load before capturing screenshots in Cocos Creator automated workflows.
Instructions
Navigate, sleep ms, close — useful between a build and
a screenshot to let async asset loading finish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| ms | No | ||
| viewport_width | No | ||
| viewport_height | No | ||
| timeout_ms | No |