unity和ios交互:
unity调用ios的方法:
c#:[DllImport("__Internal")]
private static extern void _UseIOS();
ios:extern "C"{
void _UseIOS(){ }
}
ios调用c#:
UnitySendMessage("ObjectName", "MethodName", "Message to send");
unity和android交互:
c#调用java:
new AndroidJavaObject(“javaClass”,“method”)
java调用c#:
UnityPlayer.UnitySendMessage("ObjectName", "MethodName", "Message to send");