Spawn Items
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 staticVaultInventory
.- 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 modified 6mo ago