2

Is it possible to make a button in unity that will execute a function in Xcode? I'm trying to execute an push message from an unity3d project. Please help cause it's making me crazy...

Thanks in advance :-)

Kay
  • 12,918
  • 4
  • 55
  • 77
thar
  • 1,094
  • 2
  • 13
  • 25
  • Just a little help. Xcode is only the IDE and has nothing todo with the functions or methods that the application will execute. ;-) – Sandro Meier Mar 05 '12 at 14:28

1 Answers1

2

Yes, you can call native Objective-C code that have a C interface. And even more you can call back methods in Unity3D. Some useful documentation where to start:

Plugins

Building Plugins for iOS

There was a demo project and blog posting. This was removed from the original web site, which now does advertising only. The archived version from 2012 can be found here:

Internet Archive Wayback Machine April 2, 2012: Clever Martian's Blog - An Experiment with iPhone Native UI and Unity 3 Pro

Kay
  • 12,918
  • 4
  • 55
  • 77
  • the blog is missing. and I had writen another one: [*Use iPhone Native UI in Unity3D*](http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&eotf=1&u=http%3A%2F%2Fwww.jtianling.com%2Farticles%2F2030.html) – jtianling Jan 13 '13 at 01:04