- Home /
Question by
KaiserJohan · Nov 18, 2011 at 11:42 PM ·
c#androidc++
Using swig to generate a C# wrapper from C++
Hello,
I have the idea of using Swig on my C++ code to generate a C# wrapper, which is then imported by my C# script in Unity. The deployment target is Android hence I compile my C++ into a .so library
My question is then, how do I link to that .so file? I can't just use LoadLibrary on a .so file in C# right? I can't use the [DllImport] stuff described http://unity3d.com/support/documentation/Manual/Plugins.html there either as it imports native methods while I have my C# wrapper already? I'm just generally confused on how to load the .so.
Comment
Hi $$anonymous$$aiser, how do you import the wrapper (a bunch of .cs?) to Unity? Just put them in assets folder and it will work?