如何将MixedReality-ToolKit实现到现有的HoloLens项目中?

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

我正在从这个项目扩展Unity 2017.4.21f中Hololens的VideoCaptureExample:https://github.com/VulcanTechnologies/HoloLensCameraStream

现在我必须从我的Canvas控制ScrollView和Buttons所以我需要来自MRTK的Gaze-Function。一旦我尝试从这个页面实现unitypackage:https://github.com/Microsoft/MixedRealityToolkit-Unity/releases for 2017.4.2.0它向我显示了许多C ++异常,而我甚至没有使用该包中的任何内容:

Exception thrown at 0x76EDF2B2 (KernelBase.dll) in HoloLensVideoCaptureExample.exe: WinRT originate error - 0x80131534 : 'System.TypeInitializationException: The type initializer for 'WinRTBridge.WinRTBridge' threw an exception. ---> System.TypeInitializationException: The type initializer for 'WinRTBridge.TypeInformation' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'GLTFSerializationUWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
   at UnityEngineInternal.BootstrapHelpers.FillTypeMaps0(Dictionary`2 , List`1 )
   at UnityEng'.
Exception thrown at 0x76EDF2B2 (KernelBase.dll) in HoloLensVideoCaptureExample.exe: WinRT originate error - 0x80131534 : 'System.TypeInitializationException: The type initializer for 'WinRTBridge.WinRTBridge' threw an exception. ---> System.TypeInitializationException: The type initializer for 'WinRTBridge.TypeInformation' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'GLTFSerializationUWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
   at UnityEngineInternal.BootstrapHelpers.FillTypeMaps0(Dictionary`2 , List`1 )
   at UnityEng'.
Exception thrown at 0x76EDF2B2 in HoloLensVideoCaptureExample.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x04EFE2F8. HRESULT:0x80131534 The text associated with this error code could not be found.
WinRT-Informationen: System.TypeInitializationException: The type initializer for 'WinRTBridge.WinRTBridge' threw an exception. ---> System.TypeInitializationException: The type initializer for 'WinRTBridge.TypeInformation' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'GLTFSerializationUWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
   at UnityEngineInternal.BootstrapHelpers.FillTypeMaps0(Dictionary`2 , List`1 )
   at UnityEng

我已经尝试检查播放器设置并对其进行了研究,我真的陷入了这个问题。以下是Unity的播放器设置:

enter image description here

unity3d hololens mrtk
1个回答
1
投票

我刚拿了那个版本的MRTK和最新的HoloLensCameraStream源代码。仅运行HoloLensCameraStream示例会产生一些C ++ TypeLoadExceptions;添加MRTK 2017.4.2.0并没有增加它们,也没有看到GLTFSerializationUWP相关的类型加载。相反,我确实在输出中看到GLTFSerializationUWP已成功加载,因为它现在作为包含MRTK的一部分包含在您的项目中。

两种选择:

  • 从Unity生成新的UWP构建到空文件夹
  • 尝试更新到不再具有GLTFSerializationUWP.dll引用的较新MRTK

希望有所帮助!

© www.soinside.com 2019 - 2024. All rights reserved.