godot-steering-ai-framework/godot/Demos/Utils/Line2DDraw.gd
2020-08-23 12:25:09 -04:00

14 lines
226 B
GDScript

tool
extends Line2D
export (Color) var inner_color := Color() setget set_inner_color
func _draw() -> void:
draw_colored_polygon(points, inner_color)
func set_inner_color(val: Color) -> void:
inner_color = val
update()