: draw 2d line¶
Draw a line (or multiple lines)
Usage: : draw 2d line [OPTIONS] <FROM_TO>...
Arguments¶
| Name | Description | Possible values | Default |
|---|---|---|---|
<FROM_TO> | Expression that returns an array [from, to], where from and to are both Vector2 or Vector3 (or a Node). The array can also be longer to draw a polyline |
Options¶
| Name | Description | Possible values | Default |
|---|---|---|---|
-t--time | The lifetime of the line, in seconds (0 = only drawn for one frame) | 1 | |
-c--color | Color of the line | green |