I need Path2D visible and modifiable in Play Mode. Here is the script that works perfectly well:
func _draw():
if curve.get_point_count() > 0:
draw_polyline(curve.get_baked_points(), Color.white, 2)
for p in curve.get_point_count():
var pos = curve.get_point_position(p)
draw_circle(pos, 5, Color.white)
if (currentTool == tools.SELECT or currentTool == tools.MOVE):
draw_circle(curve.get_point_position(index), 8 , Color.red)
So far, so good. But when I add bezier in/out handles under _draw() function it returns error:
draw_circle(curve.get_point_in(), 10 , Color.orange)
draw_circle(curve.get_point_out(), 10 , Color.orange)
update()
Apparently, I'm doing something wrong, do you have any idea what should be done for it to draw handles for me? What should be added and how? Highly appreciate your time and attention!