【问题标题】:Error when deploying by USB to Hololens 1 after build using Unity使用 Unity 构建后通过 USB 部署到 Hololens 1 时出错
【发布时间】:2021-09-14 17:50:11
【问题描述】:

我正在尝试使用 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 设备! (但我只用了一根电缆)

Unity 版本: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 无法发送到设备或进入设备的存储。

谢谢!

【问题讨论】:

  • 尝试宁可create an app package直接通过Device portal上传
  • 您提到您使用的是 HoloLens 1 - 没有注视跟踪硬件。从清单中取出凝视参考?
  • @Nzc 你的意思是在玩家设置中禁用手部追踪吗?我做到了,但它不起作用
  • 它说“无法映射注视输入”,这在 HL1 上是预期的。只要你在 HL1,下面 Hernando 的建议听起来很明智。

标签: visual-studio unity3d augmented-reality hololens openxr


【解决方案1】:

Unity 2020 不支持定位 HoloLens(第一代)。在 Unity 2019 LTS 和 Legacy Built-in XR 中,到 2022 年年中,这些耳机在 Unity 2019 LTS 的整个生命周期中仍然受到支持。因此,建议回到以前版本的 Unity(2019LTS) 和 Legacy XR 管道。更多详情请参考此链接:Choosing a Unity version and XR plugin

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-15
    • 1970-01-01
    • 2023-01-10
    • 2020-10-17
    相关资源
    最近更新 更多