- Home /
Player Prefs not Saving in Linux
We have a released game that is fine on Windows. We are working to port it to Linux, and in my own testing everything works, including saving and loading. However, many of our beta testers report their progress is not saved. All progress is written via player prefs, and again it works without issue on Windows. Any ideas what specifically could be different with Linux?
EDIT: I'm looking into PlayerPrefs.Save() I never ran this on Windows, although reading up on it, apparently it calls automatically on exit, its possible the exit call is not working correctly on Linux, testing this now.
Answer by BobbyDoogle · Jul 06, 2016 at 03:32 PM
Think I resolved this one myself, indeed calling PlayerPrefs.Save() manually at a number of points in my project ensured by the time they quit the prefs were saved. Also, they may have not been saving as I was calling a process kill rather then an application.quit() because the latter was freezing the game.
You should only be using PlayerPrefs for player preferences like screen resolution.
Your answer
Follow this Question
Related Questions
How to send user file to update already compiled game? 0 Answers
PlayerPrefs.GetString not saving past values 0 Answers
PlayerPrefs string variables 1 Answer
PlayerPrefs Script Problem 1 Answer