Synced
GraphCanvasView.HitPort
Section titled “GraphCanvasView.HitPort”
- Finds a port by its displayed socket or label row, without interpreting its domain type.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Graph.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Graph.GraphCanvasPort? InnoEditor.Graph.GraphCanvasView.HitPort(InnoEditor.Graph.GraphCanvasLayout layout, System.Numerics.Vector2 point, float radius = 8)Parameters
Section titled “Parameters”Parameter layout: The current document presentation snapshot.
Parameter point: The screen-space pointer.
Parameter radius: The nonnegative minimum socket hit radius in screen pixels.
Returns
Section titled “Returns”The hit neutral port, including Missing state, or null over non-port content.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: The radius is negative or nonfinite.