Can I use DllImport/PInvoke in libraries loaded as Assets in Unity Free?

Posted by sebf on Game Development See other posts from Game Development or by sebf
Published on 2013-03-05T23:08:46Z Indexed on 2013/10/22 22:04 UTC
Read the original article Hit count: 352

Filed under:
|
|

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?)

© Game Development or respective owner

Related posts about unity

Related posts about libraries