Unity 3.5 to Unity 4.5.4

I am trying to upgrade my old Unity xCode (Unity 3.5) project to Unity (4.5.4). The application will be broken using this po method:

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

Help me please.

+6
source share
2 answers

In Unity (4.5.4), they use the char parameter as follows:

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

So, we want to change the call as follows:

  UnitySendMessage("className", "methodNameName" , "Nil"); 
+8
source

Man, the easiest way is to restore unity, and everything will be

0
source

Source: https://habr.com/ru/post/1204541/


All Articles