Hello everyone again i was reading last 2 weeks to how to save just scene in games i have levels and when player will quit the game he can’t open last scene where he was i read player prefs and etc but i found tutorials onli saving value of position or music or score i don’t want any of this i just want to save scene by scene for example when player is in lvl5 when he reopens game he will continue from lvl one any ideas? i just lost 2 weeks for this i would appreciate you’re help thank you <3 take care
Go back to those PlayerPrefs and saved game tutorials because that’s the only way to do this.
i would be happy but can’t find anything what will work for me can u suggest video or post or anything? but only to save scenes not position of players or anything else thank for you’re replay btw
Load/Save is an extremely advanced topic requiring you to make several very-informed decisions about how to structure the solution you want. There is no general solution.
Here are the basic Load/Save steps:
Saving/loading to the same scene is very easy. Having the scene return to its previously played state is exponentially more difficult.
If all you are trying to do is get back to the correct scene, take a look at this post of mine from a different thread.
If what you want is to return the scene to a previously saved state, you’ll have to design your game in such a way where you can serialize all the data needed to recreate the current state of the scene at any time, actually create the save system to write it all to disk, then create a load system which reads in the serialized data to return the scene to the previously saved state. This is not a trivial amount of work, and how you do it depends a lot on what is in your game which you would need to restore from a save file.
Your post is very difficult to read, so I can’t tell which you were actually asking for. I can’t even tell where your sentences end.