Synced
ImGuiWidget.DragDropTarget
Section titled “ImGuiWidget.DragDropTarget”
- Accepts an unmanaged payload and reports its preview state on the most recently submitted item.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.ImGui
Declaration
Section titled “Declaration”public bool Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.DragDropTarget<TPayload>(string payloadType, out TPayload payload, out bool isPreviewing) where TPayload : unmanagedType parameters
Section titled “Type parameters”Type parameter TPayload: Unmanaged payload type.
Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”true only when a compatible payload is delivered.