摘要: 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 阅读(1286) 评论(2) 推荐(0) 编辑
摘要: OC回调unity 有两种方法 第一种: UnitySendMessage方式(接口声明固定,只能是void method(string message);不能带有返回值;必须要挂载到对象后才能调用。) 使用方法很简单 NSString *resultStr = @"hello world"; Un 阅读全文
posted @ 2020-05-06 14:08 kawerd 阅读(1533) 评论(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 阅读(805) 评论(0) 推荐(0) 编辑