Search Unity

PlayerPrefs doesn't work on Oculus Go

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

  1. TerekhinDT

    TerekhinDT

    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:
    9,859
    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. TerekhinDT

    TerekhinDT

    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.