PlayerPrefs does not appear to write their values to disk/registry until the application exits. Does anyone know a way to force the PlayerPrefs to write without exiting the app?
Oo i did not know that! I’ll have to test now heh.
If you 100% need to write something immediately though - I would trust that System.IO.File will get the job done. Store important stuff in your own file
I tested on OS X and PlayerPrefs does write while the app is running, but not necessary every time you use it. Writing a value several times seems to make it more likely that the prefs will be updated immediately. Of course, the behavior on Windows might be completely different.
–Eric