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 build with Windows.Storage

I'm currently trying to load files from the documents folder on the HoloLens using StorageFolder to get the path to the documents folder of the current user. I need this so the user is able to upload files from the device portal and use them inside the Unity application.

The only problem is that I can't build my projects anymore from Unity unless I comment out all the methods that use Windows.Storage and the using statement.

So my question is, is there something I can do so it doesn't run a piece of code when I build the project inside Unity but does run when I deploy/build my solution to the HoloLens. Or is there another way to get the Documents folder of the current user that works with Unity?

The solution provided by HoloSheep over here doesn't work as I'm still getting the same errors while building.

Best Answer

Answers

Sign In or Register to comment.