Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

unity doesn't overwrite playerprefs when an app is updated does it?

Discussion in 'iOS and tvOS' started by hippocoder, Nov 29, 2011.

  1. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    24,929
    Hope not, but need to know.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    It does not but it used to drop them if you change the version in the player settings depending on the platform (not on iOS).
     
    Last edited: Nov 29, 2011
  3. tonyd

    tonyd

    Joined:
    Jun 2, 2009
    Posts:
    1,224
    What?

    If I change the version to 1.1, my users will lose their settings?

    What's the work around for this? Change the version in Xcode?
     
  4. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Depending on the platform.
    On iOS it shouldn't be touched normally and so far I've not seen it, the playerprefs should just be there (you can check that pretty easily, as playerprefs -> NSUserDefaults)
     
  5. tonyd

    tonyd

    Joined:
    Jun 2, 2009
    Posts:
    1,224
    The platform is iOS.

    Are you saying not to change it in Xcode either? What is the correct method to make it show version 1.1 in the App Store?
     
  6. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    24,929
    Is it intended behaviour to drop it at all? shouldn't playerprefs be a constant thing? It should be an option, I am fairly alarmed in all honesty.
     
  7. tonyd

    tonyd

    Joined:
    Jun 2, 2009
    Posts:
    1,224
    Okay Dreamora, just saw your edit...

    So it doesn't drop playerprefs in iOS, even if you change the version number.

    Whew!