Search Unity

[Solved]PlayerPrefs doesn't save on exit in Windows 8.1

Discussion in 'Windows' started by stamenkrumov, Sep 1, 2014.

  1. stamenkrumov

    stamenkrumov

    Joined:
    Jun 15, 2014
    Posts:
    33
    I use PlayerPrefs to save data from my game settings( sound On / Off, ect. ). When I play the game I can make changes to playerPrefs with no issue but when I quit it, my settings are lost and the next time I run my game they are not loaded. I tried PlayerPrefs.Save() when I exit the settings menu but this doesnt helped.
    Should I do some changes to App manifest in order to save my game data on disk or something else ?
     
  2. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    What did you do to solve this problem, just curious? Random mistake on your end?
     
  3. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,822
    This is a known issue. Don't use the Build & Run command from Unity.
    Build to the Visual Studio project. Then run from Visual Studio.