Search Unity

Limitation of PlayerPref

Discussion in 'Editor & General Support' started by Rachan, Jun 5, 2021.

  1. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    783
    Limitation of PlayerPref

    I really wondering, there has any limitation of PlayerPref ?
    I know that a limited of 1 MB But another?

    so when I have to call PlayerPref.Save(); every time I have to set a Key value
    if I call it too much PlayerPref.Save(); it would be cause an issue? because I working on Mobile game
    and I always found a problem with save/load I don't know why..
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,911
    You should really only be using PlayerPrefs for some simple configuration things. Make your own saved game system that uses files if you want to do something more complicated, and you won't have to worry about weird limitations like this.
     
    Rachan likes this.
  3. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    783
    Thank you fior your answer
    Basically I used to buy EasySave asset for this save system
    But it still not ok, so after I start call PlayerPrefs.Save() everything is seem ok now I just know that I need to call PlayerPref.Save when I run a game on some device so a problem seem to be less than before
    But it still not ok for me, so I really want to know how to properly use PlayerPref I think it ok for my save game
    my save game is very small file