Bidirectional message sending and receiving from Android-Studio and Unity [RESOLVED]

Hello all,

We’re trying to embed a Unity player in an Android-Studio project (native) with Unity exporting as a Google Android Project (unity) which is in a module as it has to do more than just play. While we’ve been able to send a message from the native side to unity, despite trying many approaches, we cannot send a message from simple unity project to native.

Unity documentation on this is painfully lacking and doesn’t work with the latest updates to both systems and we really need a solution here so any suggestions are more than welcome.

You can use DLLImport to map native functions to c# - Unity - Manual: Native plug-ins

1 Like

Thank you for the reply there! We didn’t end up doing that but after a few late nights found a bit of a mangled way to do it with the project. The modular systems we’d setup turned out to be a bit of an Achilles heel in this case.