Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mkjrfan · Nov 10, 2013 at 04:35 PM · compilingunity-android

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:

  1. Do I need Unity Pro or buy a license for Android if I am only making it for one person?

  2. 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)?

  3. Will it take the different plug ins that unity uses (I plan to make it 2d) when compiling it for android?

  4. How similar is the build process of Android compared to PC?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

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

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mkjrfan · Nov 10, 2013 at 05:05 PM 0
Share

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?

avatar image Triqy · Nov 10, 2013 at 05:31 PM 0
Share

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.

avatar image
1

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.

  1. 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?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The type or namespace 'var' could not be found (in C#) 7 Answers

Problem adding script to GUI Texture 1 Answer

Using Pragma to slit app in two 1 Answer

Unity 5.0.0f4 freezes at "Building assets for scene 0" 0 Answers

Can I control when unity compiles scripts? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges