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

Saving data to disk on Hololens

Hi, I have been trying to output some data from my app to disk on HoloLens. I am trying to avoid using playerprefs. Based on what I understand, I should be able to write to ApplicationData.Current.LocalFolder [source: https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.localfolder.aspx].

I used the code in the example for testing and I got errors saying async is not available in C# 4. A quick google shows async and await is not supported by Unity yet. I wonder if there is a way to output data to disk on HoloLens? (Preferably not on cloud and not using playerprefs)

Any help is appreciated!

Answers

  • Options

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options

    Hi HoloSheep,

    Yes, I came across this page during my research but it didnt really give an API or an example about how to save files on HoloLens. Could u point me to the right direction?

    Thanks

  • Options

    @LOL_Vampire there are a couple of links referenced in some of the connected pages of the docs to the file pickers and if you dig around for UWP file api you will find articles like this that may help get you started.

    Note if you end up using any of the newer .NET apis that are not in Unity's flavor of mono you will want to surround your calls with the appropriate conditional #if such as

    #if !UNITY_EDITOR 
    

    Important to keep in mind the following:

    HoloLens uses the app model provided by the Universal Windows Platform (UWP), a model and environment for modern Windows apps. The UWP app model defines how apps are installed, updated, versioned and removed safely and completely. It governs the application life cycle - how apps execute, sleep and terminate - and how they can preserve state. It also covers integration and interaction with the operating system,** files **and other apps.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

Sign In or Register to comment.