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.

Last updated