cocos_duplicate_node
Create a shallow copy of a Cocos Creator node without its children or components, returning the new node's index for scene editing.
Instructions
Shallow-copy a node (no children/components). Returns new node index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| new_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |