Click here to Skip to main content
15,886,103 members
Articles / STL
Technical Blog

Unity,Android : Porting your unity game for testing

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
24 Feb 2014CPOL2 min read 16.9K   5   2
After a successful game release to Windows store ,I wanted to try with mobile platforms.I thought why can’t i port the same game (Bongo Soccer-200 downloads on win 8/8.1 as on today) to android? The issues i may face I have used an unity Terrain and a 3dMax goalpost in my game,which are h

After a successful game release to Windows store ,I wanted to try with mobile platforms.I thought why can’t i port the same game (Bongo Soccer-200 downloads on win 8/8.1 as on today) to android?

The issues i may face

  • I have used an unity Terrain and a 3dMax goalpost in my game,which are heavy for a mobile.
  • As the game is developed using unity basic version,there is no support asynchronous calls.
  • Mobile is always a light-platform compared to desktops/laptops and tablets.

Let’s a give a try.There is nothing to loose here.

Android was my first choice because to test any app on android,you don’t have to register or pay anything.Its’s FREE!!!!

Prerequisites :

  • Basic knowledge of Unity3d game engine/framework.
  • A fully developed Unity Game
  • Eclipse with Android SDK

Once you are ready,we can start testing your game on a mobile running on Android,

DEVICE on Eclipse :

1) Connect your phone to your laptop/desktop.

2) Open Eclipse IDE and check whether your device is detected.

android_unity_4

3) Once you open DDMS,you should see your device here.If your device is not shown up,check your Android OS version and make a note of it.

Porting your game :

1) Open build settings and select android.

android_unity_1

2) Texture Compression can be anything which is compatible with your mobile.

3) Check Google android project checkbox if you want an eclipse project.Development Build can be left unchecked.

4) Click on player settings,

android_unity_2

Note : Company Name and product name are important.Its mandatory for all the platforms

5) Select appropriate Default orientation to test.If you are not sure select Auto Rotation

6) Icon and Splash Image settings are optional for testing.But they are always good to have.

7) Publishing Settings are very important

android_unity_3

8) Bundle Identifier (reverse of your DNS/Domain Name) and Bundle Version settings are important and required.If you don’t see your device detected,the reason may be because your mobile is running  on an OS before 2.3.1.Try on a mobile running on Gingerbread or above.

9) Save the settings and run the game on unity.It will ask for a location on your laptop/desktop to save the .APK file.

10) Once the file is saved,You should see the game running on your Android mobile.

All the best !! Post your comment and Share this…

Recommended : 

Android-Getting Started (unity3d)


Filed under: Mobile, unity Tagged: Android, Android : Porting your unity game for testing, Android SDK, game development, testing game on android, Unity, unity game to android, UnityEngine

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions

 
QuestionHi Pin
Ilia Glizerin24-Feb-14 22:39
Ilia Glizerin24-Feb-14 22:39 
AnswerRe: Hi Pin
Vidyasagar Machupalli24-Feb-14 22:52
professionalVidyasagar Machupalli24-Feb-14 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.