EditorPlugin.forwardSpatialDrawOverViewport

Called by the engine when the 3D 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
forwardSpatialDrawOverViewport

Detailed Description

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

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

Meta