cocos_add_uitransform
Add a UI transform component to Cocos Creator nodes to enable UI rendering by specifying dimensions and anchor points for proper layout.
Instructions
Attach a cc.UITransform to a node. Required for any UI rendering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| width | Yes | ||
| height | Yes | ||
| anchor_x | No | ||
| anchor_y | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |