我正在通过以下项目扩展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 对于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中的播放器设置:
答案 0 :(得分:1)
我刚刚使用了该版本的MRTK和最新的HoloLensCameraStream源。仅运行HoloLensCameraStream示例就产生了一些C ++ TypeLoadExceptions。添加MRTK 2017.4.2.0并没有增加它们,也没有看到GLTFSerializationUWP相关的类型加载。 相反,我在输出中确实看到GLTFSerializationUWP已成功加载,因为它已作为包含MRTK的一部分包含在您的项目中。
两个选项:
希望有帮助!