Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

PlayerPrefs doesn't work on Oculus Go

Discussion in 'VR' started by vrcorp, Jul 21, 2020.

  1. vrcorp

    vrcorp

    Joined:
    Sep 7, 2016
    Posts:
    4
    It seems like PlayerPrefs doesn't work on the Oculus Go because we can't to get path /data/data/pkg-name/shared_prefs/pkg-name.xml. Save/load functions aren't working.

    The standard code for save:
    Code (CSharp):
    1. PlayerPrefs.SetString("data", "someData");
    2. PlayerPrefs.Save();
    for load:
    Code (CSharp):
    1. PlayerPrefs.GetString("data");
    It works perfect on the Windows and the Android in mobile, but doesn't work on the Android in the Oculus Go.

    Maybe i don't understand something. Has anybody do this?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    8,887
    I use PlayerPrefs on Oculus Go all the time. It works fine. I have no idea what "we can't to get path /data/data/pkg-name/shared_prefs/pkg-name.xml" means.
     
    gjf likes this.
  3. vrcorp

    vrcorp

    Joined:
    Sep 7, 2016
    Posts:
    4
    It's really strange. PlayerPrefs is a simple method and work good on PC. I can't find path where is my save-files from PlayerPrefs. I opened device in windows explorer and tried to find the save-files but windows search get nothing.
     
unityunity