Can I use DllImport/PInvoke in libraries loaded as Assets in Unity Free?
- by sebf
I am interested in using utilising third-party libraries in Unity Free.
I know Unity can use managed libraries as Assets, but only the Pro version supports using native libraries. (DllImport within scripts). This thread however suggests that it is possible to import DLLs in the free version.
I would like to utilise native libraries (as a hobbyist I cannot afford Pro), but want to do it the supported way so I don't have to worry about Unity 'fixing' this hole if that is what it is.
Is there any supported way to use native libraries with Unity free? (i.e. does that thread suggest a workaround or is it a 'bug'?
Is it supported to use DllImport/PInvoke in libraries loaded as assets? (could I create a wrapper myself?)