문제

I'm an Android developer who is working with a Unity developer. Our goal is to create somehow a "bridge" communication to send messages between my Android background Service/thread to the Unity exported game (both running on the same device...)

For now, the only solution we've found to implement such communication is by directly by opening TCP Sockets between the two apps based on the localhost.

I know also that it's supposed to be possible to somehow create native C functions in Unity which can be reachable from my Android app, but I haven't found any good explanation of how to do that.

Is there a way to develop the Unity game to somehow expose the Android API? Is there any other way, besides the solution I've mentioned, to create this kind of communication?

도움이 되었습니까?

다른 팁

you can check my tutorial for your problem, might help you ! ;)

http://jeanmeyblum.weebly.com/1/post/2014/02/communication-between-an-android-app-and-unity.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top