cocos_set_node_position
Set the position of a node in Cocos Creator scenes by specifying X, Y, and Z coordinates to place game objects accurately within 2D or 3D environments.
Instructions
Set a node's local position (x, y, z). z defaults to 0 for 2D scenes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| x | Yes | ||
| y | Yes | ||
| z | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |