Unity Hololens开发中的FilePickers出现问题 [英] Trouble with FilePickers in Unity Hololens development

查看:233
本文介绍了Unity Hololens开发中的FilePickers出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在如何开始使用文件选取器上找到了很棒的参考资料.但话虽如此,我仍无法使提供的代码适用于我的Unity Hololens应用.

I found a terrific reference on how to get started with file pickers. But with that being said, I am not able to get the provided code working for my Unity Hololens app.

我的情况: 我有一个文件,可以说是一个目标文件,例如3DModel.obj.我希望我的应用能够在运行时找到该文件(3DModel.obj),然后在运行时加载它.

My scenario: I've a file, lets say an object file, like such, 3DModel.obj. I want my app to be able to locate this file (3DModel.obj) at runtime, and then load it at runtime.

我正在尝试使用这些读/写功能,但是却无所适从.我已经遍历了许多函数,例如Windows.Storage.ApplicationData.Current.RoamingFolder,KnownFolder,LocalFolder,dataPath,persistentDataPath.

I'm attempting to use these read/write functions but I'm getting no where. I've run through numerous functions such as, Windows.Storage.ApplicationData.Current.RoamingFolder, KnownFolder, LocalFolder, dataPath, persistentDataPath.

我已经仔细阅读过

I've perused through Microsofts file picker documentation, and I'm still left scratching my head.

这些似乎都无法完成我想做的事情,或者我对如何使用文件选择器的无能和缺乏知识无法完成工作.

None of these seem to accomplish what I'm trying to do, or my ineptitude and lack of knowledge on how to use file pickers fails to get the job done.

推荐答案

HoloLens外壳的限制:

文件资源管理器和本地文件系统

Windows Holographic应用程序模型当前未公开文件系统的概念.有已知的文件夹,但没有内置的本地File Explorer应用程序,例如Windows Desktop或Mobile.应用程序可以将文件保存到其本地状态文件夹中.应用程序还可以将文件保存到OneDrive之类的已注册文件选择器应用程序中.

The Windows Holographic app model does not currently expose the concept of a file system. There are known folders, but there is no built in, local File Explorer app like on Windows Desktop or Mobile. Apps can save files to their local state folders. Apps can also save files to a registered File Picker app like OneDrive.

这篇关于Unity Hololens开发中的FilePickers出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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