Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Accepts an unmanaged payload and reports its preview state on the most recently submitted item.

API: engine
Project: Inno.Editor.ImGui

public bool Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.DragDropTarget<TPayload>(string payloadType, out TPayload payload, out bool isPreviewing) where TPayload : unmanaged

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.

true only when a compatible payload is delivered.