Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity 3.5 to Unity 4.5.4

I am trying to update my old Unity xCode (Unity 3.5) project to Unity (4.5.4). The app will crash using this method po:

UnitySendMessage([className UTF8String], [methodNameName UTF8String], nil);

Help me, please.

like image 522
DIJO JOSEPH Avatar asked Oct 13 '14 07:10

DIJO JOSEPH


1 Answers

In Unity (4.5.4), they are using char parameter like this:

    (UnitySendMessage(const char* obj, const char* method, const char* msg);)

So we want change the call like this:

    UnitySendMessage("className", "methodNameName" , "Nil");
like image 100
DIJO JOSEPH Avatar answered Oct 21 '22 17:10

DIJO JOSEPH