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.

Launch external Files with HoloLens (Coding)

Good morning,

First of all, sorry for categorizing this question in the "general" part, but I can't ask the question in the "building holographic app section" (not selectable option).

I was trying to create a small application that was able to open a file (either .mp4, .png, .pdf ...) every time you click the corresponding button. To do this, I had created a very simple class that would allow me to open a specific URL (using Applications.OpenURL). It works well within Unity, however, once I implement it in the hololens or in the emulator, the application slam ends.

My suspicion is that by giving a local URL to my computer (ie, c: / Users / HoloLens / ...) when implementing it in the HoloLens it does not find that address and it closes. I was trying to instantiate an object of the StorageFile class; However, being asynchronous Unity does not let me continue, for the following error: " feature "asynchronous functions" cannot be used because it is not part of the c # 4.0". I have tried to create a directive #if WINDOWS_UWP, but it does not work for me since this option does not allow me from unity to put the link of the file I want to open.

So, my questions are: Has someone achieve to open a local file with the HoloLens with a link defined in the coding (or in unity)? if so, how did you do it?

Thanks in advance!

Sign In or Register to comment.