- Home /
Unhandled Exception: System.TypeLoadException after I put a plugin.
I'm developing a simple game running on Surface Pro 3, and need the gyro data from surface pro. I'm following this tutorial https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/writing-plugins and created a plugin to return the gyro data. Yet when I try to access its methods through the plugin, the compilation fails with following error message:
Unhandled Exception: System.TypeLoadException: Could not load type 'gyroTest.myGyro' from assembly 'gyroTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I think it's because I use Windows.Devices.Sensors in the plugin, which Unity does not supports, but I'm not quite sure how to solve it. Thank you!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613201145im_/https://answers.unity.com/themes/thub/images/avi.jpg)