Search Unity

Question Save & Load Data on Oculus Quest (1/2) locally

Discussion in 'VR' started by unity_vqWUEgaPswgbCA, Apr 7, 2021.

  1. unity_vqWUEgaPswgbCA

    unity_vqWUEgaPswgbCA

    Joined:
    Feb 3, 2021
    Posts:
    2
    Hi everyone,

    I recently started to develop an app on Unity, meant to be used on Oculus Quest 1 and 2 (by some students)

    My problem is that I want to save & load some data between my scenes or some restart of the game.

    I started to implement a solution, based on Brackeys's tutorial :


    For now, it's working well on my computer (with occulus link), but when I create an apk, it's not working. (I don't have any error messages since it's an app)

    I assume that I can't create/read my data, but can't know for sure. (and I don't find any created file on the occulus, using sidequest, even after a restart of the occulus.

    How would you guys do it ? (Not only using "Backeys's way" aka Bytecode)

    I prefer not to use online storage, since I don't to take the risk to have a bad wifi connection.

    (I'm not fluent in english, sorry if my message is kinda messy)

    Thanks !
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,443
  3. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    What @mgear said. I can confirm that both standard C# file I/O works under Application.persistentDataPath, and PlayerPrefs also works fine (and is considerably easier for simple things).
     
    unity_vqWUEgaPswgbCA likes this.
  4. unity_vqWUEgaPswgbCA

    unity_vqWUEgaPswgbCA

    Joined:
    Feb 3, 2021
    Posts:
    2
    JoeStrout likes this.
  5. unity_MWApX_NCxlZjhg

    unity_MWApX_NCxlZjhg

    Joined:
    Dec 19, 2020
    Posts:
    1