Vuforia 和 Azure 空间锚点 (ASA) 在 HoloLens 上的 Vuforia 中不起作用

问题描述 投票:0回答:0

当我尝试在 Unity 项目中同时使用 Azure Spatial Anchors (ASA) 和 Vuforia 时,在 Vuforia 的初始化中出现“NullReferenceException: Object reference not set to an instance of an object”错误。

  • 它在 Unity Play 模式下工作,但在 HoloLens 中崩溃
  • 我是否使用延迟初始化并不重要
  • 我的版本是Unity 2020.3.24f1, Vuforia 10.3.2, Azure Spatial Anchors SDK Core/Windows 2.12.0

当我删除 Azure Spatial Anchors SDK Core/Windows 并包含 ARFoundaton 时,它也会因同样的错误而崩溃。我确实在 VuforiaConfiguration 中看到了一些 arfoundation 版本的切换,所以它可能与 Azure 锚点也使用的 ARFoundation 有关。

我尝试通过包管理器更新 Azure 锚点版本。这确实升级了 VuforiaConfiguration 的内部 ARFoundation 版本,但确实修复了它。当它在没有 Azure 锚点的情况下指示版本 4.1.9 时它似乎可以工作,但是一旦我包含锚点 Azure 锚点再次开始构建,它就会被重置。它不起作用的版本是 4.0.12(旧的 zure Anchors 包)4.1.13(新的最新 Azure 锚包)

我还没有升级 Vuforia 版本,因为这总是一个重大更新,需要相当长的时间。

我们真的需要这两个功能,所以我希望有一个解决方案。谢谢

unity3d vuforia azure-spatial-anchors ar-foundation
© www.soinside.com 2019 - 2024. All rights reserved.