Hey all! I was wondering, does Unity support some kind of inline obj-c, a way of having Objective C in your normal C# or JS code, so that you can use Apple libs and frameworks like MapKit? Since it get’s converted to obj-c anyway, I don’t see any reason this feature might be missing…
It doesn’t get converted to Objective-C actually, it’s AOT compiled CIL code. There isn’t a way to do inline code, but you can use Objective-C plugins.
–Eric
I believe that JS is converted to C# and then C# is compiled ahead of time and then Unity builds an XCode project that has the binaries it compiled earlier as references. So how could I, for example, use MapKit so I can display a map through plugins. I’d need the pro version, but aside of that, how can one do this?
No, there is never a case when a high-level language is converted to another high-level language; that would be an unnecessesary step and JS can’t be directly mapped to C# in all cases. It’s all AOT compiled to CIL code as I mentioned; have a look in the Data folder of a build project.
You don’t need Pro for iOS plugins. http://unity3d.com/unity/licenses I haven’t used MapKit so I don’t know specifically.
–Eric
Oh that’s very nice of them! I do have the iOS license!
How can I use any apple framework for that matter?
–Eric
I was actually reffering to using Apple’s libraries but that got the job done. Thanks Eric! ![]()