2013年2月22日 星期五

The Customized Android Activity on Unity3D

   The Unity3D is not accept you to change the launch flow.but some time we need to insert the special flowchart( for example : login, play the opening video, native menu...etc). So it's not a function in current version(4.5.6). but we still can finish it.

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/


沒有留言:

張貼留言