Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
584 views
in Technique[技术] by (71.8m points)

c# - Using FileOpenPicker app contract Hololens 2 with Unity development

Similar to this post I am trying to implement FileOpenPicker into my hololens 2 app. However, I am doing this through the Mixed Reality Toolkit in unity and have been having some troubles finding out how to set up the contract within the app.

I know the post I linked above directs you to FileOpenPicker which is what I have been trying to do but I'm a bit confused about the samples they have and how to do that within unity C#.

Any recommendations on how to get this working would be a big help. Thanks!

There is also This post that helps with how to use FileOpenPicker but it's directed at standalone UWP apps and not something built in unity.

question from:https://stackoverflow.com/questions/66047264/using-fileopenpicker-app-contract-hololens-2-with-unity-development

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

So for anyone who stumbles across this post, as of 2/8/2021 using FileOpenPicker with no other installed apps on the Hololens 2 doesn't work.

It took me forever to find this post but here's a partial answer Open local data path with FileOpenPicker

So to make a TL;DR about that post. FileOpenPicker DOES work on Hololens, however, it works through externally installed File picker like OneDrive.

I don't know why I didn't find this post sooner until I went down every avenue to figure it out.


EDIT: I managed to solve my issue over on THIS POST if there is anyone stumbling across this issue hopefully that helps.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...