- Home /
dll cross platform?
IF I place a DLL file in plugins, will my code work accross platforms: Android/Mac/Windows/IOS?
Answer by Bunny83 · Apr 22, 2012 at 12:11 PM
It depends on what kind of dll. If it's a pure managed code library (`100% .NET / Mono`) you shouldn't place it in plugins, just in the assets folder since it's a normal assembly like all your other scripts.
If it's a native code plugin (which have to be placed into the plugins folder), like the name says it contains native code from a specific platform. Usually they can't be used crossplatform. A lot such plugins have different versions for different platforms so you have to use the correct plugin for your platform.
Native code libraries are called:
On windows also
.DLL
On mac OS
.so
Don't know for other platforms ;)
edit
Be careful with .NET / Mono assemblies. Some are mixed-code assemblies that are .NET assemblies in it's nature, but they also include native code / native code dependencies which propably won't run on other platforms.