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 Iencrypt · Jun 05, 2015 at 02:40 PM · android

Unity to Android?

Hey everyone!

I'm trying to convert my unity project game into an android application, which I can post on the google play store for people to download. I read alot and people told me to just download android sdk, and follow various steps until i can save my project as a .sdk. My question:

So all i have to do is save my unity project as .sdk? Like I'm confused on how android apps work with Unity. A unity project game contains over 2000 files, how do i go about making this entire unity game made in c#, to an android app, which uses java? Do i just upload the .sdk to the play store? Can some one give me clear instructions please? Will the whole package with 2000 files get converted into .sdk??

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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by DoTA_KAMIKADzE · Jun 05, 2015 at 02:46 PM

1) Read THIS.

2) Setup Android SDK correctly.

3) Read and change build setting described there.

4) Make some changes to your project if there are platform dependent codes, etc. THIS might be handy for you.

5) Make sure you've selected Android platform in build settings => press build => save as Something.apk.

6) That's it, upload your apk wherever you want to whichever store, just install on android device or do whatever else you want with it.

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
2

Answer by screenname_taken · Jun 05, 2015 at 02:50 PM

Unity is a game engine with multiple build options. You just go in build settings and select your build platform and it just... exports it in that. The way Unity works is that it has a player engine for each platform and it uses the scenes and assets you give it to make a game/app. And you don't convert it to SDK. SDK is the software files you'll download so that unity will read and be able to convert it to that platform. The android end file is an APK. You download the SDK manager from google, run it, select your build tools to download, download the Java JDK and then tell Unity where you've installed both. Unity can now export to Android.

Of course you may need to make some changes to your scene if you want to handle touch events and you did not use Unity's UI but instead used the old GUI system. (That easily handles touch and mouse clicks.)

Comment
Add comment · Show 10 · 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 Iencrypt · Jun 05, 2015 at 02:52 PM 0
Share

$$anonymous$$ so the unity scrips are writtein in c#. How would i go about converting all those scripts into java, which is what android reads? Do they get converted automatically?

avatar image screenname_taken · Jun 05, 2015 at 02:58 PM 0
Share

Yeap. That's Unity's job.

avatar image Iencrypt · Jun 05, 2015 at 03:02 PM 0
Share

$$anonymous$$k, so your literally saying that I download a sdk manager from google, and and in my project, just build as android? ( assu$$anonymous$$g i have the java jdk). Unity will automatically do everything else, including touch functions on the android phone

avatar image screenname_taken · Jun 05, 2015 at 03:08 PM 0
Share

The touch part depends on how you made your controls. If you hardcoded mouse buttons or keyboard buttons then you'll run into trouble. But if ins$$anonymous$$d you used the GUI system that was introduced in Unity 4.6, where you just put functions on button actions, then it will work with touch ok as that is handled through the Event System.

@DoTA_$$anonymous$$A$$anonymous$$I$$anonymous$$ADzE linked some stuff that just describe what you should be checking.

avatar image Iencrypt · Jun 05, 2015 at 03:21 PM 0
Share

I'm currently working on following this tutorial, and changing it based on my likings : https://unity3d.com/learn/tutorials/projects/space-shooter

The scripts are based on buttonclicks with keyboard. So how would i go about changing those scripts to touch screen. And ye i'm still reading the java plugins that dota posted.

Show more comments

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

OnApplicaitonFocus(false) called only after game returns to foreground 0 Answers

Wake lock for android 2 Answers

how to send text from html page to unity android app? 0 Answers

App does not start on Android and force close 2 Answers

Develop for two platforms simultaneously? (or at least reducing the conversion time) 0 Answers


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