Namespace: GGG.Inventory.UI
Describes a drag-and-drop action involving an inventory slot.
public readonly struct InventorySlotDragInteraction
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
InventorySlotDragInteraction(SlotDragInteractionType, int, InventorySlotView, PointerEventData)
Creates a new InventorySlotDragInteraction instance.
public InventorySlotDragInteraction(SlotDragInteractionType type, int slotIndex, InventorySlotView view, PointerEventData eventData)
Parameters
The interaction or operation category.
slotIndex int
The zero-based inventory slot index.
view InventorySlotView
The slot view associated with the operation.
eventData PointerEventData
The Unity UI event payload.
Properties
EventData
Gets the Unity pointer event information.
public PointerEventData EventData { get; }
Property Value
PointerEventData
SlotIndex
Gets the zero-based index of the bound inventory slot.
public int SlotIndex { get; }
Property Value
Type
Gets the interaction category.
public SlotDragInteractionType Type { get; }
Property Value
View
Gets the originating slot view.
public InventorySlotView View { get; }