In Android, we can insert the special Activity to be launch point. and launch the Unity activity later. the principle is that, when you put the Manifest in project folder(Assets/Plugin/Android/), the release will use it. you should put res/ and assets/ too. finally the src/ should compile to jar file, and put it in bin/.
//TODO add source code
The iOS solution will discuss later.
Reference :
http://lancelotdiary.blogspot.tw/2012/05/unity3d-plug-in-for-android-activity.html
http://randomactsofdev.wordpress.com/2011/08/19/accessing-the-android-compass-through-unity-3d/
沒有留言:
張貼留言