x


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.

more ▼

asked Apr 07 '10 at 06:55 PM

user-1998 (google) gravatar image

user-1998 (google)
11 1 1 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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);
more ▼

answered Apr 15 '10 at 03:50 PM

Tetrad gravatar image

Tetrad
7.2k 27 37 89

(comments are locked)
10|3000 characters needed characters left

You need to use the Pro Version of Unity in order to use your own Objective-C code as a plugin.

more ▼

answered Apr 15 '10 at 01:36 PM

touchgamedev gravatar image

touchgamedev
100 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5078
x3737
x347
x10
x7

asked: Apr 07 '10 at 06:55 PM

Seen: 2678 times

Last Updated: Apr 15 '10 at 03:50 PM