📚
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. How To...

Spawn Items

VaultInventory.SpawnWorldItem(item, position, stackSize);

That's all there is to it!

Requirements

  • VaultRuntime script is in the current scene. This sets the reference fields for the static VaultInventory.

  • Runtime Item Template prefab is set inside VaultRuntime.

  • Runtime Item Template prefab has a configured RuntimeItemProxy script on it.

Feel free to create overrides for the RuntimeItemProxy script to control how your items spawn.

PreviousHow To...NextSetup from scratch

Last updated 2 years ago

Was this helpful?