Hi,
I have a tool script attached to an Area2D and I'm trying to draw a line in the editor as a helper.
When I run the game I can see the line being drawn but in the editor it is not appearing.
Here's the code:
tool
extends Area2D
func _ready():
set_physics_process(true)
func _physics_process(delta):
update()
func _draw():
draw_line(Vector2(), Vector2(20,50), Color(1,1,1), 3)
I tried both, process and physics_process.
Sorry if this was asked before, I couldn't find the answer.
Any idea?
Thanks