I am making a survival type game with an inventory, how the inventory works is it instantiates the items, and childs the items under their appropriate slot. How would I save the entire scene when the game closes? It would be too slow and possibly not do-able saving it with playerprefs, so is there a way to save the entire scene including instantiated objects?
In general you don’t save the whole scene. Only save what is impotent.
A good place to save the data is just a json or binary file with the save data.
You can have a save manager that knows what to save and collect all the data you need when you like to save.
And for loading you would need to generate the objects in your scene from the save data.
You can have a class that holds all the data you want to save and then you can serialize that class.
that sounds quite complicated, do you think you could show me how to do that or link me to a page that shows how to do it? I’m not too great at stuff like this.