Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
grismor's avatar
grismor
Honored Guest
6 years ago

File Path of Oculus Quest Internal Storage

I am trying to create a text file and save it to the Quest internal storage when my application is run? Does anyone know the path in order to do this?
I am using Unity if that makes a difference.

1 Reply

  • Try something like this:
    StreamWriter thisWriter = new StreamWriter("/storage/emulated/0/yourfile.txt",false);

    thisWriter.WriteLine("This is my file contents");
    thisWriter.Close();

    You'll need to set external write permissions in the player settings.
    Then also be aware that because the quest does file transfer by MTP, you might need to unplug and replug the quest for the file to show up.
    Good luck!