Quantcast
Channel: Recent Discussions — Mixed Reality Developer Forum
Viewing all articles
Browse latest Browse all 10543

How to get the file when my app is opened via a file association?

$
0
0

Hello everyone,

I am fairly new to developing on the Hololens and have run into a snag. I am trying to make an application that is capable of viewing a 3D model file. Due to the restricted nature of the file system on the Hololens, my plan is to have the user download the file in Edge, click the downloaded file which should open my application via file associations. This part is fairly easy and I have the association in place. It opens my application just fine.

The problem is that I am using Unity and am not sure how to get the reference to the file inside of the application. I have searched and have not been able to find an example of anyone attempting this. Some of the things that I have tried include using Environment.GetCommandLineArgs() (which does not exist on the Hololens), as well as attempting to override the OnFileActivated() event (which also does not appear possible). Is there a way to accomplish this?

Regards,

Zarraya


Viewing all articles
Browse latest Browse all 10543

Trending Articles