In my game, the Settings page is a different scene from the actual game. I want the player to be able to change the settings while playing.
How can I make sure that the game scene is saved (along with all the variables), while the player switches over to Settings scene.
Also, how do I load the saved scene, for when the player finishes changing the settings?
If you want the player to access a menu during gameplay, like a pause menu, don’t make the menu a separate scene. Although it can be done, you probably really definitely absolutely shouldn’t.
There is no easy way for you to “save a scene” as it were during runtime.
There is no way to save a scene during runtime, unless you create your own system to save any changes.
Another problem is changes are lost when the scene reloads. As the answer from b1gry4n says you can use those to assist. I feel the best for you is to have the menu in the same scene, earthier placing the main menu scene objects somewhere in the world and use different cameras and layers to make them only visible to certain ones, or by having a way to look at all game objects in the scene and saving any changes to disk and reloading it when returning to the main scene,
I think you should stick to the same scene, but good luck with making it work!