Hi Marcus,
I try to use your script with unity3d, but I have some problems.
in the unity project there is just a cube and in the first view controller your code (I take the code from your example) and i have this error:
webViewDidStartLoad
2015-03-03 10:37:19.195 perceval[1355:1715745] -[__NSCFType countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x18913bf0
2015-03-03 10:37:19.196 perceval[1355:1715745] *** WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: -[__NSCFType countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x18913bf0
2015-03-03 10:37:22.363 perceval[1355:1715745] WVJB RCVD: {"data":"Hello from JS button","callbackId":"cb_1_1425375442341"}
2015-03-03 10:37:22.363 perceval[1355:1715745] ObjC received message from JS: Hello from JS button
2015-03-03 10:37:22.363 perceval[1355:1715745] -[__NSCFType addObject:]: unrecognized selector sent to instance 0x18913bf0
you have any idea?
Thanks a Lot.
I used unity 4.6.2 with Xcode 6.1.1.
Hi Marcus,
I try to use your script with unity3d, but I have some problems.
in the unity project there is just a cube and in the first view controller your code (I take the code from your example) and i have this error:
webViewDidStartLoad
2015-03-03 10:37:19.195 perceval[1355:1715745] -[__NSCFType countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x18913bf0
2015-03-03 10:37:19.196 perceval[1355:1715745] *** WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: -[__NSCFType countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x18913bf0
2015-03-03 10:37:22.363 perceval[1355:1715745] WVJB RCVD: {"data":"Hello from JS button","callbackId":"cb_1_1425375442341"}
2015-03-03 10:37:22.363 perceval[1355:1715745] ObjC received message from JS: Hello from JS button
2015-03-03 10:37:22.363 perceval[1355:1715745] -[__NSCFType addObject:]: unrecognized selector sent to instance 0x18913bf0
you have any idea?
Thanks a Lot.
I used unity 4.6.2 with Xcode 6.1.1.