Save/load game state

Hello, I have a need to save/load the state of the entire Scene. (well, excluding one or two Game Objects)

I found tangentially related information on AngryAnt’s posts about “Logging an entire GameObject” and “CopyInspector” scripts, but not what I needed.

I think CopyInspector could be adapted, but I am not comfortable enough with C#.

My Unity Answers post has no useful responses. Can anyone here help me out?

+1 this question

If you’re willing to pay, Brady sells an EZ Game Saver on his site. http://www.anbsoft.com/middleware/ezs/index.htm

You do know about the PlayerPref class right? Thats the way to go. :smile:

Correct me if I’m wrong, but the PlayerPref class is used for storing variables. Not whole Game Objects.

EZ Game Saver looks similar to what I need, however it saves the game state to the hard drive. I need to be able to hold a copy of the game state in RAM for short periods of time, and rapidly roll back to it during this period.

This is because I am using a Monte Carlo approach to my game’s AI. Speed of implementation is a necessity.

Apologies for being initially ambiguous. My other threads contained technical details about my implementation, but received no response. Therefor, this thread merely asked a simple question.