Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Finds a port by its displayed socket or label row, without interpreting its domain type.

API: scripting
Project: Inno.Editor.Graph.ImGui
Scope: Editor

public InnoEditor.Graph.GraphCanvasPort? InnoEditor.Graph.GraphCanvasView.HitPort(InnoEditor.Graph.GraphCanvasLayout layout, System.Numerics.Vector2 point, float radius = 8)

Parameter layout: The current document presentation snapshot.

Parameter point: The screen-space pointer.

Parameter radius: The nonnegative minimum socket hit radius in screen pixels.

The hit neutral port, including Missing state, or null over non-port content.

Exception T:System.ArgumentOutOfRangeException: The radius is negative or nonfinite.