Hi there.
I'm making a game where I move back and forth between multiple scenes. Some gameobjects with inventories will exist in multiple scenes. Other gameobjects will exist in only one scene but still need the info for their inventories to be able to be saved and loaded.
To accomplish this, I need to save the inventories of some gameobjects into one file and some into another file.
For example:
load into scene 1. Hit save game button.
Chest 1 inventory is saved to file 1.
Chest 2 inventory is saved to file 2.
load into scene 2.
load chest 1 inventory from file 1.
chest 2 does not exist in this scene.
do some stuff.
save chest 1 inventory to file 1.
load back into scene 1.
load chest 1 inventory from file 1.
load chest 2 inventory from file 2.
Does anyone have any idea how I would go about accomplishing this? Do I need to write a custom SaveSystemManager component?
I'm making a game where I move back and forth between multiple scenes. Some gameobjects with inventories will exist in multiple scenes. Other gameobjects will exist in only one scene but still need the info for their inventories to be able to be saved and loaded.
To accomplish this, I need to save the inventories of some gameobjects into one file and some into another file.
For example:
load into scene 1. Hit save game button.
Chest 1 inventory is saved to file 1.
Chest 2 inventory is saved to file 2.
load into scene 2.
load chest 1 inventory from file 1.
chest 2 does not exist in this scene.
do some stuff.
save chest 1 inventory to file 1.
load back into scene 1.
load chest 1 inventory from file 1.
load chest 2 inventory from file 2.
Does anyone have any idea how I would go about accomplishing this? Do I need to write a custom SaveSystemManager component?