Quantcast
Channel: Questions in topic: "external-libraries"
Viewing all articles
Browse latest Browse all 86

Importing object type from .so lib

$
0
0
Hi, How do you import an object type into Unity? For instance, let's say I have a .so library written in C/C++ with this inside: Lib: typedef struct myObject{ // some stuff here } myObject; Then what do I do in Unity to get this back? [DllImport("mylib")] // Something? If needed, yes I've looked it up on the internet, read the Unity documentation, other threads etc... the only thing I have found was [this][1] and it didn't help me because I don't know what's inside myObject and I don't need to. Any help would be appreciated. Thanks [1]: http://forum.unity3d.com/threads/calling-c-plugin.16000/

Viewing all articles
Browse latest Browse all 86

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>