1

我正在尝试使用 Unity 通过 USB 将 Hololens 1 应用程序部署和运行到设备。

我遵循本教程(以及之前在 YouTube 上的更多内容): https ://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-base-02?tabs= openxr

我什至尝试使用两种不同的 Hololens 1 设备!(但我只用了一根电缆)

统一版本:2020.3.13f1

当我将 Hololens 插入 PC 时,我听到有东西连接时的窗口声音(但连接后看不到 Hololens 的存储)并且 Hololens 正在充电。

我在 windows 和 Hololens 上处于开发者模式。我将 Hololens 与 Visual Studio 中的正确 pin 码配对。

在此处输入图像描述

输出:

Creating a new clean layout...
Copying files: Total 75 mb to layout...
Checking whether required frameworks are installed...
Registering the application to run from layout...
RemoteCommandException: AppxManifest.xml(43,6): error 0x80070002: Cannot map the gazeinput well-known device name to a device interface GUID for the Template3D_1.0.0.0_x86__pzq3xp76mxafg package. Check that the device name is correct.

0x80070002
DEP0700: Registration of the app failed. [0x80004005] Failed to register through new deployment pipeline.
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
DEP6953: Failed to launch remote debugger with the following error: 'Command failed: 0x80270254'.

我不知道接下来要尝试什么。我不明白错误以及来自哪里。我认为它可能由于某种原因 Windows 无法发送到设备或进入设备的存储。

谢谢!

4

1 回答 1

1

Unity 2020 不支持以 HoloLens(第一代)为目标。在 Unity 2019 LTS 到 2022 年年中的整个生命周期中,这些耳机在 Unity 2019 LTS 和 Legacy Built-in XR 中仍然受到支持。因此,建议回到以前版本的 Unity(2019LTS) 和 Legacy XR 管道。更多详细信息,请参阅此链接:选择 Unity 版本和 XR 插件

于 2021-09-20T05:40:53.123 回答