0 votes

How draw line from point to point like this?
enter image description here

in Engine by (203 points)

Your image isn't showing.

1 Answer

+1 vote
Best answer

There is draw_line, draw_polygon, draw_primitive, draw_rect method.
You can draw something in func _draw() with these method.
If you want to call _draw() to update, use update()

And there is pending PR for more elegant way.
https://github.com/godotengine/godot/pull/7352

by (9,700 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.