Remember Settings on Quit

I’m working with a custom rig for some stereoscopic rigs. I’ve set up part of the rig, to allow for the alteration of the cameras (rotates, and moves them) within the game.

I’d like to be able to save these values when the game is quit so that those are the values the game uses when it launches next time.

Is there a way to keep variable values between game launches?

I would use an ini file.

There are plenty of ini readers/writers on the internet.

You could also just make a text file and read the lines, or use XML. Whatever works for you.

Just use PlayerPrefs; I don’t think there’s any real point in going to the bother of parsing files unless you have a large amount of complex data.

–Eric

Awesome. Thanks both for the leads. I think I’m going with PlayerPrefs which seem to do exactly what I need.

It’s one of those things that I just didn’t know how to search for in the documentation.

Thanks again!