Use slots to drag items between specific cells in a Grid or Table. Items can occupy multiple cells, swap with another item, or replace it and pick it up.
Use Capture Current Cell on automatically placed items when they should keep their positions as other items move. See Cells and Rows for placement and overlap settings.
| Mode | Behavior |
|---|---|
| Nearest Slot | Use the nearest overlapping slot, allowing the layout's placement rules to shift other items. |
| Nearest Open Slot | Use the nearest overlapping slot with space for the item's entire span. |
| First Open Slot | Use the first open placement in layout order, without requiring the pointer to overlap that slot. |
| Swap Nearest Slot | Use an open slot, or trade places with the item already there if both fit. For example, dropping a 1×1 potion onto a 2×1 sword moves the sword to where the potion started, shifting it over if it needs more room. |
| Replace Nearest Slot | Use an open slot, or drop the item and pick up the one already there. You then carry the picked-up item until you click again to place it. |
Nearest Sibling, Start, and End place items by sibling order. Choose those modes for lists where you want the layout to reflow instead of assigning specific cells.
| Invalid Drop Mode | Behavior |
|---|---|
| None | End the drag and leave the item where it is. This is the default. |
| Return To Start | Restore the starting parent and placement. Normal collision rules apply if the original slot has become occupied. |
| Continue Drag | Keep dragging until another click attempts placement. |
An item picked up by Replace Nearest Slot uses its own Invalid Drop Mode. If it returns to its start, the item that replaced it stays where it was dropped. With external input, Continue Drag behaves like None, and Replace Nearest Slot doesn't pick up the other item.
Use SlotFilter to reject candidate slots based on your game's rules, such as equipment type. Fit and occupancy checks still apply. Use DragTargetFilter or the target's InteractableFilter to restrict which inventories accept an item.
To highlight where an item will land while it's being dragged, read the interactable's DragSlot. During a swap, DragSwapSlot shows where the other item will go.