📚
Vault Ecosystem
  • General
    • Vault Ecosystem
    • FAQ
    • Limitations and Bugs
    • Support
    • Get It On The Asset Store... (Core Only)
    • Get It On The Asset Store... (Core + Inventory)
  • Vault Core
    • Core
    • How To...
      • Do the basics
      • Use Asset Filters
      • Manage Unique Asset IDs
  • Vault Inventory
    • Inventory
      • Features
      • Getting Started
      • Serialization
      • Interactions
      • Storing and Accessing Data
      • FAQ
    • How To...
      • Spawn Items
      • Setup from scratch
      • Change or Remove Networking Systems
      • Use UI Components
      • Understand Authority
Powered by GitBook
On this page

Was this helpful?

  1. Vault Inventory
  2. Inventory

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.

PreviousStoring and Accessing DataNextHow To...

Last updated 2 years ago

Was this helpful?