FAQ
How do I add shortcuts to specific Hotbar items?
if (Keyboard.current.digit1Key.wasPressedThisFrame)
{
Hotbar.ActivateSlotRemotely(0);
}
You can activate any specific slot index with the code above, just change the 0 to the slot id you want. You could scale this up to use all of the keyboard digit keys, mapping them to specific indexes.
Last updated
Was this helpful?