📚
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

Interactions

PreviousSerializationNextStoring and Accessing Data

Last updated 3 years ago

Was this helpful?

Interaction Flow

There are 2 primary built in ways to interact with something: right clicking in the Inventory or left clicking on the Hotbar. You can add more interactions, and make your own systems interactable by leveraging the IUseableDataEntity interface.

Hotbar

If you're using the Hotbar, only one interaction type is supported: The Use interaction. This will directly use the 'thing' docked. Things other than Items can be docked on the Hotbar so it will Use the item by going through the IUseableDataEntity interface. By default, the UseableItem implements this but you could extend it, for example, to work with an Ability system that can be docked on the same Hotbar as long as they implement the IUseableDataEntity interface.

Inventory

If you're using the Inventory, many interactions are available but 3 interactions are available by default: Use, Drop, and Split. The default interactions are always available and evaluated to be valid since this applies to virtually all things that could be in the Inventory.

World Entity

A third way which is not yet built in is to create your own Interactions that use the same design approach as the existing systems. This should be fairly straightforward as long as you trigger the interaction, validate the actions and reach into the IUseableDataEntity interface to use them.

General flow of interactions