I need to join certain parts of a game made in Unity with an android app, is it possible? That is, put a game-like intro with unity and then use Android's own activities.
Something similar to joining java with react native.
Cheers
I need to join certain parts of a game made in Unity with an android app, is it possible? That is, put a game-like intro with unity and then use Android's own activities.
Something similar to joining java with react native.
Cheers
Yes you can, at least in unity 5.3 onwards you can export your unity project to Android Studio. Depending on what your main activity is, you may want to start in the unity activity and show your android activities above it, or vice versa, start in the android activity and then show the unity activity.
If you have knowledge of Android it is as easy as changing the intent-filter in the manifest.
To call native code from Unity and change the Activity, the easiest thing in this case is to add a static function to the UnityPlayerActivity class to show the other activity, for example:
displayNativeActivity would be your static function that does a startActivity of your native Android activity.