Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Accepts an unmanaged payload on an explicit screen-space rectangle.

API: engine
Project: Inno.Editor.ImGui

public bool Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.DragDropTarget<TPayload>(string payloadType, System.Numerics.Vector2 minimum, System.Numerics.Vector2 maximum, uint targetId, out TPayload payload, out bool isPreviewing, bool drawDefaultHighlight = true) where TPayload : unmanaged

Type parameter TPayload: Unmanaged payload type.

Parameter payloadType: Stable ImGui payload type identifier.

Parameter minimum: Minimum screen coordinate of the complete target.

Parameter maximum: Maximum screen coordinate of the complete target.

Parameter targetId: ImGui identifier unique within the current window.

Parameter payload: Previewed or delivered payload value.

Parameter isPreviewing: Whether a compatible payload is hovering over the target.

Parameter drawDefaultHighlight: Whether ImGui draws its default target rectangle.

true only when a compatible payload is delivered.

Exception T:System.ArgumentException: Thrown when payloadType is empty or whitespace.