Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

PlayerPrefs on Xbox One

Discussion in 'Windows' started by ladron, Sep 12, 2017.

  1. ladron

    ladron

    Joined:
    Mar 16, 2012
    Posts:
    47
    Is using PlayerPrefs an acceptable way to save data on Xbox One? It appears to work, and even looks like it ties save data to the logged in user profile.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
  3. ladron

    ladron

    Joined:
    Mar 16, 2012
    Posts:
    47
    Great, thanks!
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
  5. danielheadbang

    danielheadbang

    Joined:
    Mar 24, 2015
    Posts:
    34
    It doesn't seem to tie playerprefs to logged user in my experience, change something and quit the application and change user, and my changes reflect on the game when starting it with another user
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    PlayerPrefs are not user specific.
     
  7. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    Would it be possible that this kind of information is added to the PlayerPrefs documentation.

    Having different platform behaviors documented in general would make it a lot easier to work with these API's, as having a proper documentation results in less trial&error. It probably unloads you too, since there are less of these questions.
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    We could add it, however, I'm not sure how relevant that would be. You can already see from that page that the path where the data is saved does not depend on Xbox Live users. The concept of Users is entirely part of Xbox Live APIs and they are transparent to the rest of the application.
     
    Kitsuba likes this.