cocos_add_skinned_mesh_renderer
Attach a skinned mesh renderer to animate characters in Cocos Creator by linking mesh, skeleton, and materials to scene nodes for imported GLTF/FBX models.
Instructions
Attach cc.SkinnedMeshRenderer — MeshRenderer driven by a skeleton.
Use this for humanoid/animal characters imported from GLTF/FBX.
skinning_root_node_id is the scene-array index of the armature
root node created during model import (pass the Node id, not a UUID).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| mesh_uuid | No | ||
| skeleton_uuid | No | ||
| skinning_root_node_id | No | ||
| material_uuids | No | ||
| shadow_casting | No | ||
| shadow_receiving | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |