DIJO JOSEPH DIJO JOSEPH - 1 year ago 164
iOS Question

Unity 3.5 to unity 4.5.4

Am trying to update my old unity xcode (unity 3.5) project to unity (4.5.4), App will crash using this method po UnitySendMessage([className UTF8String], [methodNameName UTF8String], nil);

help me plz

Answer Source

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 our call like : UnitySendMessage("className", "methodNameName" , "Nil");

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download