How It Works
The hotbar can “remember” what was assigned to each slot:- Assign an item to a hotbar slot
- The item’s ItemID is stored as this slot’s sticky ID
- Use or drop all items until the slot is empty
- The slot stays empty, but the sticky ID remains
-
When you later obtain that item again (via pickup, crafting, etc.), the hotbar:
- Refills that empty slot first
- Sends any remaining items to the main inventory
Configuration
Enable/disable auto-refill:- Blueprint: set
Auto Refill EnabledonHotbarComponent - C++:
HotbarComponent->bAutoRefillEnabled = true;