- Home /
How can I convert my pc created game into an android game?
Hi I wanted to create a small android game for a friend and I was hoping that I could use unity to help make it easier. The reason I wanted to make it on PC first is just to test. After the game is done I want to make a Android build that can run on my friend's tablet.
I've been doing some searching around and I am a little confused on some things:
Do I need Unity Pro or buy a license for Android if I am only making it for one person?
Is there anything (other than controls and graphics) that I need to keep in mind while coding that might interfere when porting to Android (for example some code won't compile for Android)?
Will it take the different plug ins that unity uses (I plan to make it 2d) when compiling it for android?
How similar is the build process of Android compared to PC?
Answer by Triqy · Nov 10, 2013 at 04:43 PM
http://unity3d.com/unity/multiplatform/mobile
unity is free to build out to android under certain guidlines. As for what you need to do what your asking look at these links
http://docs.unity3d.com/Documentation/Components/index.html
http://docs.unity3d.com/Documentation/Manual/android-sdksetup.html
http://docs.unity3d.com/Documentation/ScriptReference/Input-touches.html
Based on the links you gave the build process for Android seems similar to the process that of the PC except using the Android sdk. Is that true?
Very much so. The only differences are the Input controls, and texture shaders. And the limited amount of hardware memory you are able to utilize. A typical mobile game should be somewhere around 20 to 35 draw calls(Graphic strain(Unity Pro))
for optimal performance. There is a Unity Standard package(mobile) that you can fiddle with to get a feel of building to devices. But that is after you set the sdk up first.
Answer by kaiyum · Nov 10, 2013 at 05:52 PM
1.You can build android games freely with unity. However if you want to use android pro,then you have to have unity-pro(that is pc-mac standalone pro).
2.In case of using native plugin, you can face problems. Each plugin should be compatible to each platform to run code from. However this depends on plugin and system to deploy. For graphics, if you assume that you can just downscale the textures and get away with it; wrong idea! As for code, I haven't found any unity API(input and other very platform specific) yet which do not run on particular platform. But I think you can not do certain things for certain platform. These are my observation and data got from friends:
a.Normal mapping for PC-console will not work on mobile platform. You have to use inbuilt mobile shaders or write one. b.Displacement mapping also might not work for certain mobiles. c.Should avoid heavy AI for mobiles. d.tips: in stead of using normal mapping at all, you can bake light data as AO-convexity-cavity.Then multiply it with diffuse. This will give you huge performance gain.
actually do to get you. Did you mean like: plugins from asset store will work on mobile platforms too?
4.Building a PC game is somewhat different than console game(should not go beyond 1K!). And building a mobile game is heavily different than PC game. Your resource is limited, you have to work with it. For example some mobile will not do terrain. There are many many things need to be aware of. Actually you can build from file menu and setting players. But what is the point of a build which will give you 1-5fps?
Answer by Adil_Alhilali · May 29, 2020 at 12:01 PM
Yes, you can build Android games for free with Unity however, you have to follow the Google Guidelines when submitting your application for Google play store
[Google Play Store GuideLines for Unity Games Link][1] [1]: https://docs.unity3d.com/Manual/UnityIAPGoogleConfiguration.html