- Home /
Importing a DLL that contains C#-wrapped C++ Code
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?
Your answer
Follow this Question
Related Questions
NuGetForUnity not working with .NET 4.x? 0 Answers
Rebuilding (overwriting) a plugin DLL while the editor is open 0 Answers
How to link to scripts in the Package Manager when building a dll. 0 Answers
Unity XR plugin manager Tries to load oculus dll on windows even if its disabled. 0 Answers
Compiled dll for plugin assets usage 2 Answers