Click or drag to resize

EditorPluginForwardSpatialDrawOverViewport Method

Called by the engine when the 3D editor's viewport is updated. Use the overlayControl for drawing. You can update the viewport manually by calling UpdateOverlays.

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

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public virtual void ForwardSpatialDrawOverViewport(
	Control overlay
)

Parameters

overlay
Type: GodotControl

[Missing <param name="overlay"/> documentation for "M:Godot.EditorPlugin.ForwardSpatialDrawOverViewport(Godot.Control)"]

See Also