cocos_add_graphics
Attach a vector drawing component to a node for runtime graphics in Cocos Creator scenes, enabling dynamic visual elements without manual coding.
Instructions
Attach a cc.Graphics to a node (for runtime vector drawing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |