Add android project in Unity?

Guys, I’m currently work with an Android Dev in project, and we decided to import android project as a part of game. So I wana know is this possible and how to pass value form unity function to android ?

Yes, compile your project as an android library and you will be able to use it from Unity. Here’s some documentation on plugins https://docs.unity3d.com/Manual/PluginsForAndroid.html

Depending on what you want to do, you’ll use one or more of these things
https://docs.unity3d.com/ScriptReference/AndroidJavaObject.html
https://docs.unity3d.com/ScriptReference/AndroidJavaClass.html
https://docs.unity3d.com/ScriptReference/AndroidJavaProxy.html
https://docs.unity3d.com/ScriptReference/AndroidJavaRunnable.html

1 Like