Adjuvo / SenseGlove-Unity

The latest stable Unity SDK for the SenseGlove.
MIT License
35 stars 10 forks source link

TypeLoadException when using .Net 2.0 Subset #4

Closed MaxLammers closed 3 years ago

MaxLammers commented 7 years ago

The Unity SDK relies on a particular assembly (System.IO.Ports) to achieve communication with the SenseGlove. However, this assembly is not included in Unity's .Net 2.0 subset. If this setting is not changed to include the full .Net 2.0, the executable will crash when trying to connect due to a TypeLoadException.

This is a common problem when using outside dlls in Unity. It may be possible to include this assembly in the unityPackage, so that the .Net 2.0 Subset setting does not have to be changed.

Alternatively, we could try to find a new communication protocol with the SenseGlove. in C# as a future solution.

MaxLammers commented 5 years ago

Will be fixed in an upcoming release, which makes use of a new SenseGlove communications executable. Commands will no longer be sent directly to communication lines, but will be sent through IPC.

MaxLammers commented 3 years ago

As of Unity API 2.0, data is now exchanged via a C++ library, which doesn't require Unity to have access to System.IO.Ports.