Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Accepts an unmanaged payload and controls whether ImGui draws its default target rectangle.

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

public bool InnoEditor.ImGui.ImGuiWidget.DragDropTarget<TPayload>(string payloadType, out TPayload payload, out bool isPreviewing, bool drawDefaultHighlight) where TPayload : struct

Type parameter TPayload: Unmanaged payload type.

Parameter payloadType: Stable ImGui payload type identifier.

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.