cocos_add_mesh_renderer
Attach a 3D mesh renderer to nodes in Cocos Creator scenes to display meshes with materials, shadows, and reflection settings.
Instructions
Attach cc.MeshRenderer — renders a 3D mesh.
material_uuids: one per submesh; order matters. Pass None to
wire later via cocos_set_uuid_property(id, "_mesh", uuid).
shadow_casting: 0=OFF (default), 1=ON.
shadow_receiving: 0=OFF, 1=ON (default).
reflection_probe_type: 0=NONE, 1=BAKED_CUBEMAP, 2=PLANAR, 3=BLEND.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| mesh_uuid | No | ||
| material_uuids | No | ||
| shadow_casting | No | ||
| shadow_receiving | No | ||
| reflection_probe_type | No | ||
| enable_morph | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |