|
Hi ! I am trying to open a webView from my application, I have prepared this function: UnityPlugin.h:
UnityPlugin.mm:
} 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. NewBehaviorScript.cs :
} 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?
(comments are locked)
|
|
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?
(comments are locked)
|
