I am currently trying to import a library int Unity that was natively written in C++ and contains a .NET 3.5 binding. Unity seems to recognize it as a native library (I'd like to try to import it as a managed plugin, so I won't have to write a wrapper on top of the existing C# wrapper). Since the plugin is imported as a native plugin, I am unable to access its C# class members.
I've also tried re-building the DLL from source in Visual Studio both using the /clr and /clr:pure flags (I have not been able to get /clr:safe working with this library). The source contains a C++ project file. Should it be possible to import this as a managed plugin, or is it not possible since the plugin relies on underlying C++ libraries? Will I have to write a wrapper to get this to work?
↧