EditorPlugin.forwardCanvasDrawOverViewport

Called by the engine when the 2D editor's viewport is updated. Use the overlay Control for drawing. You can update the viewport manually by calling updateOverlays.

More...
struct EditorPlugin
@nogc nothrow
void
forwardCanvasDrawOverViewport

Detailed Description

func forward_canvas_draw_over_viewport(overlay): # Draw a circle at cursor position. overlay.draw_circle(overlay.get_local_mouse_position(), 64, Color.white)

func forward_canvas_gui_input(event): if event is InputEventMouseMotion: # Redraw viewport when cursor is moved. update_overlays() return true return false

Meta