从 Unity 到 Hololens Emulator,游戏对象消失了

问题描述

Unity 2021.1.6 with MRTK-1.0.2104.3,Windows SDK 10.0.19041.1144 with Hololens Emulator,

我在 (0,0.5) 处放下了一个立方体,在 (0,-0.1,0.17) 处放下了一个按钮。 Unity 游戏模式与 gameOjct 和 cpu 面板配合良好。

enter image description here

enter image description here

使用 HoloLens x64 和其他设置进行构建,如图所示。然后我用 Visual Studio 2019 打开 sln。用 x64 Hololens 2 Emulator 调试。模拟器启动时没有错误,我可以使用键盘上的“Windows”按钮打开/关闭 Hololens 主菜单。之后,没有我的游戏对象就黑屏。任何提示可能是什么问题?

enter image description here

谢谢

解决方法

检查您的 MixedRealityToolkit 游戏对象。似乎有一些错误配置的输入配置文件。关闭 Unity 项目并删除库文件夹。重新打开您的项目并让它加载。检查打开场景时是否出现错误,并修复它们。原因可能是 MRTK Profile 配置错误(如图所示)