Imagine this scenario. I have a Unity game that runs in Windows and Android. All code is C#.
It runs perfectly fine in both platforms, however now I need to move some classes to a separate library. They don’t use Unity classes, just .NET 3.5 classes.
For Windows I created a separate project with the classes and built a DLL that I added it into “plugins” folder. It works fine.
Now, how can I do the same for Android?
- How can I create a library from my C# classes compatible with Android?
- What extension would it have “.so” any other?
- Where should I put the library in my project (plugins folder)?
I have read I could create a PCL library but some people says it is not supported by Unity, and I’m not quite clear how can I create it and use it anyway. It is worthy to mention I don’t want to translate my code to Java or C++.
Thanks.