Using Android Studio for Unity3d

Good day all!

I am new to unity3d. I would like to create an Android game with Unity3d. I have read Unity manual about getting started with Android development but i did not install the Android SDK as mentioned. instead, I installed Android studio.

so here is my question:

Is it possible to use Android Studio in creating games with Unity3d? If yes, do you know a website or link that gives a step-by step for method for beginners on how to link Android Studio in creating games with Unity3d?

any response is appreciated.

1 Like

Unity can build Android Studio compatible project. But that is mostly for integrating plugins to Unity games or for custom launchers (e.g. launch Unity game from native Android menu).

Thank you for your response. but how do I launch Unity game from a native Android menu? is it already embedded in Unity? ( I use unity4 version 4.2)
or do I have to configure it in Android studio?

You have to create a new intent in Android studio, and modify the manifest file to make it a starting one. From that intent you can start the Unity game with startActivity when you want to start the Unity game.

1 Like

Very interesting! Can you pass any variables to the unity game activity? Like game settings set from the android menu?

You can. e.g. write those settings to a file and read the settings from Unity logic.

Check this post out which describes how to create an Android plugin using Android Studio
http://www.thegamecontriver.com/2015/04/android-plugin-unity-android-studio.html