我正在从这个项目中扩展 Unity 2017.4.21f 中 Hololens 的 VideoCaptureExample:https ://github.com/VulcanTechnologies/HoloLensCameraStream
现在我必须从 Canvas 控制 ScrollView 和 Button,所以我需要 MRTK 的 Gaze-Function。一旦我尝试从这个页面实现统一包: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 中的播放器设置: