cocos_set_skybox
Configure a Cocos Creator scene's skybox by setting environment lighting type, HDR usage, and cube map textures to create realistic backgrounds for 3D games.
Instructions
Configure the scene's cc.SkyboxInfo.
env_lighting_type: 0=HEMISPHERE_DIFFUSE (cheap default), 1=AUTOGEN_HEMISPHERE_DIFFUSE, 2=DIFFUSEMAP_WITH_REFLECTION (PBR, needs envmap).
envmap_uuid points at a cc.TextureCube asset. Pass empty string "" to clear. Pass None to leave fields unchanged.
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>"
},
"name": "cocos_set_skybox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| enabled | No | ||
| envmap_uuid | No | ||
| use_hdr | No | ||
| env_lighting_type | No |