简体   繁体   English

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

[英]From Unity to Hololens Emulator, gameobject disappeared

Unity 2021.1.6 with MRTK-1.0.2104.3, Windows SDK 10.0.19041.1144 with Hololens Emulator, Unity 2021.1.6 与 MRTK-1.0.2104.3、Windows SDK 10.0.19041.1144 与 Hololens 模拟器,

I dropped a cube at (0,0, 0.5), a button at (0, -0.1, 0.17).我在 (0,0, 0.5) 处放置了一个立方体,在 (0, -0.1, 0.17) 处放置了一个按钮。 Unity Game Mode works fine with the gameOjct and the CPU panel. Unity 游戏模式适用于 gameOjct 和 CPU 面板。

在此处输入图像描述 在此处输入图像描述

Build with HoloLens x64 and other settings as show.使用 HoloLens x64 和其他设置进行构建,如图所示。 Then I open the sln with Visual Studio 2019. Debug with x64 Hololens 2 Emulator.然后我使用 Visual Studio 2019 打开 sln。使用 x64 Hololens 2 Emulator 进行调试。 The emulator starts with no error, I can open/close Hololens main menu with "Windows" button on my keyboard.模拟器启动时没有错误,我可以使用键盘上的“Windows”按钮打开/关闭 Hololens 主菜单。 After that, just black screen without my GameObject.之后,没有我的游戏对象只是黑屏。 Any hint what the problem might be?任何提示可能是什么问题?

在此处输入图像描述

Thanks谢谢

Check your MixedRealityToolkit gameobject.检查您的 MixedRealityToolkit 游戏对象。 There seems to be some misconfigured input profiles.似乎有一些错误配置的输入配置文件。 Close Unity Project and delete the Library Folder.关闭 Unity 项目并删除库文件夹。 Reopen your project and let it load.重新打开您的项目并让它加载。 Check if you get errors when opening your scene, and fix them.检查打开场景时是否出现错误,并修复它们。 Probably a misconfigured MRTK Profile is the reason (as seen in the picture)原因可能是错误配置的 MRTK 配置文件(如图所示)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM