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
1
Question by Gribold · Jan 07, 2014 at 01:47 PM · linux

Unity for Android in a Linux Environment

I'm evaluating development tools for some graphical (rather than game) development on Android; Unity looks ideal in that it's fast and portable. I've got plenty of experience developing for Android and I've been through the "getting started on Android" sections but I'm still having difficulty understanding how Unity integrates with the Android build environment.

Our development platform is Linux using the IntelliJ IDE rather than Eclipse. Now, whilst I know IntelliJ doesn't currently support Android NDK development, you can get around this with ant scripts. So, I would expect there is some way to set up an ant build for the Unity NDK components.

What I can't seem to find out is if there is a straight library / set of Java packages I can download to use Unity. Every "Download SDK" link I've tried so far takes me to the Android SDK itself rather than something for Unity Also, the ful Unity development platform downloads only seem to be set up for Windows or Mac platforms rather than Linux.

So, my question is: Can someone point me to a blow by blow installation mechanism for the Unity-for-Android components or give me a definitive answer as to whether one can build Unity apps on a Linux development platform for an Android target platform?

Comment
Add comment · Show 5
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 Gribold · Jan 09, 2014 at 10:06 AM 0
Share

Well, that went well, suppose I'd better look elsewhere

avatar image HappyMoo · Jan 09, 2014 at 10:19 AM 0
Share

Please don't post comments as answers.

Wouldn't it be the easiest to just install Unity on Windows/$$anonymous$$ac, compile a test project for android and see what the output looks like?

If you want a rather complex example, that is known to run well on mobile, try the Angry Bots example. On Windows, it's installed here:

C:\Users\Public\Documents\Unity Projects\4-0_AngryBots

avatar image Gribold · Jan 09, 2014 at 10:42 AM 0
Share

"Wouldn't it be the easiest to just install Unity on Windows/$$anonymous$$ac, compile a test project for android and see what the output looks like?"

No.

1) If one has a Windows or $$anonymous$$ac machine available with all the appropriate tools, perhaps - We don't. (And are unlikely to at any point in the future).

2) I'm not that bothered about "the output"; I've no doubt Unity produces excellent systems or no one would be using it. I was more interested in what's involved in developing for Unity on Linux or if it's possible at all. Preferably without spending a week messing about and/or reading out of date examples all too common on Android due to the perennial cry of "deprecated" as soon as you compile something. I work about 100 hours a week already and spending more than a day finding out what platforms are supported by a framework means it's already the wrong framework.

3) I always post a 'taster' question on the forum of any major platform we may use to see how helpful the community is or isn't. Also to measure how keen the platform promoters are. $$anonymous$$y view being that you generally get the best help and/or support before you commit; It generally doesn't get better than that.

I thought it was a simple question; sorry to have trespassed on your time.

avatar image nastasache · Jan 09, 2014 at 10:44 AM 0
Share

I am not sure you can build Unity project on Linux, there is no Unity Editor for Linux; try install Unity under Wine. I know you can export the project from Windows as Java (Eclipse) project, than try to use the exported Java project on Linux. I Did not tested that but maybe work.

avatar image HappyMoo · Jan 09, 2014 at 11:30 AM 0
Share

Why that bitter tone? Your use case is not supported - no wonder that not everyone is jumping on the question. After waiting just a day, your chances are, that probably not a lot of people even understanding what you want have seen this.

Not having exported to Android yet myself, I still know that:

Unity is compiling to mono - see http://xamarin.com/android

If you would like to use their "runtime", this would be another level of indirection with questionable benefits as in the end, they just use openGL like everybody else. There is no magic behind the Unity runtime. The big benefits come from mostly the Editor besides their intermediate API, but you wouldn't want to take that many indirections just to get there.

Your App in Java -> Your API calling mono methods on the unsuported unity runtime that can change anytime -> xamarin abstraction layer -> some xamarin ND$$anonymous$$ -> Java/openGL -> Hardware

I think for what you want, you better look for a lib that gets you closer to the Hardware, like libDGX

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Pendrokar · Jul 07, 2014 at 10:13 AM

give me a definitive answer as to whether one can build Unity apps on a Linux development platform for an Android target platform?

Since Unity Technologies do not offer the Unity Editor for Linux, you may try running Unity with Wine on your Linux development platform. There are even reports of getting the Android SDK to work with it. See the community set up wiki page - http://wiki.unity3d.com/index.php/Running_Unity_on_Linux_through_Wine

Some users at the threat attached to the page mention having Android SDK working.

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 jerome187 · Oct 30, 2017 at 02:29 AM

this is old, unity runs on linux and you can build for android also

Comment
Add comment · Show 1 · 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 in1t3r · Feb 04, 2018 at 02:58 PM 0
Share

Can you please provide a link on how to set up unity natively on linux that do not hogs the CPU usage I have downloaded some build from 2017 but it keep eating my CPU 50% of all cores when it is in idle state so it make very hard to do any development on it. I do not favor installing development apps on wine but if that use less cpu and can work with editors like Rider or Reshaper by jetbrains then why not. I mean monodevelop is just poor development environment.

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

24 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there an Unity Webplayer for Linux ?? 3 Answers

Controlling StandAlone's window in Ubuntu 12.04 0 Answers

Unity Asset Server move data directory 0 Answers

Linux Rotate Screen(resolution 768*1360) Problem 0 Answers

Can multiplayer server side run on Linux? 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