Search Issue Tracker
By Design
Votes
0
Found in
2017.2.0b2
Issue ID
934865
Regression
No
[New scripting runtime] Linking problem Kinect v2 SDK .NET 4.6
TypeLoadException while trying to load Kinect libs with .Net 4.6 profile.
1. What happened
From this forum post:
https://forum.unity3d.com/threads/problems-with-kinect-2-dll-and-net-4-6-profile.483478/
The attached project contains the dlls but in case you want to use the proper SDK, install the following:
https://www.microsoft.com/en-us/download/details.aspx?id=44561
2. How we can reproduce it using the example you attached
- Open attached project
- See errors in Editor.log:
TypeLoadException: Could not load type of field 'KinectTestScript:m_pKinectSensor' (0) due to: Could not load file or assembly 'Microsoft.Kinect, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. assembly:Microsoft.Kinect, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:<unknown type> member:<none>
at (wrapper managed-to-native) System.RuntimeType:GetFields_native (System.RuntimeType,intptr,System.Reflection.BindingFlags)
...
Tried on Windows 10 in:
Version 2017.3.0a1 (b7f5aac47235)
Tue, 18 Jul 2017 12:54:26 GMT
Branch: trunk
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
npatch
Feb 01, 2018 14:36
Even if we don't include the dlls in the Plugins folder and just reference them in Visual Studio, intellisense resolves the symbols and removes the squiggly error lines and works ok, but Unity does not resolve the errors.