VaultInventory.SpawnWorldItem(item, position, stackSize);
That's all there is to it!
VaultRuntime script is in the current scene. This sets the reference fields for the static VaultInventory.
VaultRuntime
VaultInventory
Runtime Item Template prefab is set inside VaultRuntime.
Runtime Item Template prefab has a configured RuntimeItemProxy script on it.
RuntimeItemProxy
Feel free to create overrides for the RuntimeItemProxy script to control how your items spawn.
Last updated 3 years ago