摘要:
1、unity调用OC OC类代码 // testUnity.h extern "C"{ //声明一个方法 void testUnityFunction(int index, const char *userName); } // testUnity.m extern "C"{ void testU 阅读全文
posted @ 2020-05-06 14:18
kawerd
阅读(1394)
评论(2)
推荐(0)
摘要:
OC回调unity 有两种方法 第一种: UnitySendMessage方式(接口声明固定,只能是void method(string message);不能带有返回值;必须要挂载到对象后才能调用。) 使用方法很简单 NSString *resultStr = @"hello world"; Un 阅读全文
posted @ 2020-05-06 14:08
kawerd
阅读(1658)
评论(0)
推荐(0)
摘要:
unity调用OC OC类代码 // testUnity.h extern "C"{ //声明一个方法 void testUnityFunction(int index, const char *userName); } // testUnity.m extern "C"{ void testUni 阅读全文
posted @ 2020-05-06 14:07
kawerd
阅读(837)
评论(0)
推荐(0)

浙公网安备 33010602011771号