- Home /
Cocoa Bridge to Unity
Where would one start with implementing a cocoa bridge from unity iphone . I need to access native functions for sending image via SMS and assign to a contact.
Any help is greatly appreciated. Thanks.
Answer by Tetrad · Apr 15, 2010 at 03:50 PM
Dupe: http://answers.unity3d.com/questions/3537/xcode-to-unity-communication/3572#3572
The answer to that question is slightly out of date for the native code -> unity communication. As of Unity iPhone 1.6 (or so), there's a native function defined in iPhone_target_Prefix.pch that you can use to send a message to a game object in your Unity scene. If you understand Unity's messaging system it should be pretty self-explanatory.
void UnitySendMessage(const char* obj, const char* method, const char* msg);
Answer by touchgamedev · Apr 15, 2010 at 01:36 PM
You need to use the Pro Version of Unity in order to use your own Objective-C code as a plugin.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
From Unity to Xcode.... 1 Answer
C# How to Check If a Gameobject's tag doesn't equal a Specific Tag 3 Answers
Adding force to a bullet 3 Answers