I am trying to open a webView from my application, I have prepared this function:
Then I build a libUnityPlugin.a file and put it into assets dir. I also include UnityPlugin.h file into my xCode project, to link the whole project.
Unfortunately it crashes my application while its starting sending EXC_BAD_ACCESS. When I get rid of Objective-C code everything works just fine. What did I miss including this code into my Unity project?
asked Apr 18 '11 at 03:19 PM
I have found this piece of code on this forum: http://answers.unity3d.com/questions/2631/ but the code is placed at http://AppDelegate.mm file, and not in the plugin file. This means plugin is only pure C bridge between unity and the application. Am I correct?
answered Apr 26 '11 at 01:07 PM