there are some codes can save just one thing like The player position I want to know if there is any code can save the whole scene and the positions of the whole objects in it so i can load it from the main menu u know what i mean ?!
Unfortunately, saving data is a little more complicated thand that. As far as I know, in unity, there’s no way to save all the variables of a scene automatically, because that not a good way to go about it.
If you want to save data to disk space, things get a little more complicated. There’s also no one right way to save data so I can’t just tell you a function.
Instead I suggest you check out unitys live training session on data persistence: Live Training 3 Mar 2014 - Data Persistence - YouTube