Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

(Unity) Retrieving Files From Device

I'm having trouble retrieving files from the device. I have a Unity app that writes files to Application.persistentDataPath, and I want to be able to send those files to my development PC. Since there's no file explorer, the only immediate solution to my mind is to write networking functions to send the data over wifi.

Is there a simpler way to get data off the device for development purposes?

Answers

  • Options

    @CMTheo, you could make a copy of the file to a OneDrive folder and access that way.

    Thanks!
    David

  • Options

    @DavidKlineMS: I tried clicking Add on the OneDrive app, but it just brought up a dialog showing the files currently on OneDrive. I didn't see a way to browse the local device. As I understand it, that functionality doesn't exist on HoloLens. Is this correct?

  • Options

    @CMTheo correct, there is no File Explorer on HoloLens.

  • Options

    @CMTheo,
    As @neerajwadhwa mentions, there is no File Explorer on HoloLens. My suggestion was to create a copy of your file on a OneDrive folder, via code in your application.

    Your other idea (opening a network connection to your development PC and sending the file) is also a viable option.

    Thanks!
    David

  • Options

    Is this still true? There seems to be limited file browsing via the Portal page.

  • Options

    A little testing. Application.persistantDataPath maps to User Files \ LocalAppData \ (your app) \ LocalState

    The 'temp' path also maps to the 'temp' folder. Application.dataPath doesn't seem to go anywhere.

  • Options

    A little more testing: Although I was able to create and write bytes to a file in Application.persistentDataPath, and I was able to upload a text file to that location, actually trying to read it in Unity failed with 'access denied'

Sign In or Register to comment.