- Edited
hello,
Is there a way to draw a texture in the main editor screen ?
I though this func would work:
func _forward_canvas_draw_over_viewport(overlay):
# Draw a circle at cursor position.
#overlay.draw_circle(overlay.get_local_mouse_position(), 164, Color.WHITE)
overlay.draw_texture( img.mouse_tex, overlay.get_local_mouse_position() );
But it seems to be drawing on the GUI, when zooming in and out on the main editor the image remains the same size.
I cant understand the logic ?
"EditorPlugin" doesnt accept func _draw() / @tool extends Sprite2D seems to work,
But what iam suppossed to do ? I already have a node that toggles the plugIN on and off, when the user adds the node to the tree, the plugIN is a *.tscn that handles this node, should i add another node and write the code in there ?