使用FileOpenPicker应用程序合约Hololens 2进行Unity开发 [英] Using FileOpenPicker app contract Hololens 2 with Unity development

查看:69
本文介绍了使用FileOpenPicker应用程序合约Hololens 2进行Unity开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于这篇文章我正在尝试在我的hololens 2应用程序中实现FileOpenPicker.但是,我是通过混合现实工具包统一进行此操作的,因此在寻找如何在应用程序中设置合同方面遇到了一些麻烦.

我知道我上面链接的帖子将您定向到FileOpenPicker,这是我一直在尝试的方法,但是我对它们所具有的示例以及如何在统一C#中执行此操作感到困惑.

任何有关如何使此工作正常进行的建议都会有很大帮助.谢谢!

也有这篇文章可以帮助您使用FileOpenPicker,但它是针对独立的UWP应用而不是统一构建的.

解决方案

因此,对于偶然发现此帖子的任何人,从2/8/2021开始,使用FileOpenPicker且Hololens 2上没有其他已安装的应用程序将无法正常工作./p>

我花了很长时间才找到这篇文章,但这是部分答案使用FileOpenPicker打开本地数据路径

因此,请对该帖子进行TL; DR.FileOpenPicker可以在Hololens上运行,但是,它可以通过OneDrive之类的外部安装的文件选择器工作.

我不知道为什么直到我走遍各种途径找出原因后才发现这篇文章.


我设法通过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.

解决方案

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.

这篇关于使用FileOpenPicker应用程序合约Hololens 2进行Unity开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆