game_shape_2d
Add, set, clear, or retrieve points on Line2D and Polygon2D nodes in Godot. Manage point arrays and adjust line width and color.
Instructions
Line2D/Polygon2D point manipulation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Color {r,g,b,a} | |
| point | No | Single point {x,y} | |
| width | No | Line width | |
| action | Yes | Action: add_point, set_points, clear, get_points | |
| points | No | Array of points [{x,y},...] | |
| nodePath | Yes | Path to Line2D/Polygon2D node |