- Home /
Under what conditions are Unity games supposed to be run on Linux distribution?
I'd like to know at least conditions that Unity game could run on Linux machine.
First of all, our target OS(one of Linux distributions) supports only OpenGL ES 3.0. So I wonder if the graphic APIs of Unity would work on it when I build and install my project with options "Target Platform = Linux" and "Auto Graphics API for Linux" checked.
Also, If it would work well in terms of graphic, aren't there other conditions to run on linux device? I mean, I wonder how Unity's C# based languages would run on Linux machine well without layers such like .Net Core because Unity seems to not force to install such packages to run game on linux.
Thanks.
Answer by Bunny83 · Nov 09, 2021 at 10:11 AM
Unity had in the past exclusively used Mono as scripting backend on all platforms and the mono runtime was always shipped with the build. However they have implemented different approaches over the years. I'm not quite up-to-date on the development, but .NET Core support was supposed to come, I'm not sure if it's already here ^^. Regardless of .NET core, Unity has developed the IL2CPP backend. It's a cross compiler that creates C++ code from the C# code and then natively compiles your code as C++ code. This is now the default for Android and WebGL builds.
As for linux support, since there are way too many variations between the different distributions, they officially only support Ubuntu and lately CentOS. See the system requirements for the Unity player.
Linux isn't that huge as a target platform. It's certainly growing but as already mentioned way to complex to officially support all possible distros. The majority of people who do gaming on linux are probably on an Ubuntu platform. Though if you run a linux system you have to be comfortable troubleshooting anyways ^^.
I don't really use linux for gaming, so I'm the wrong person to ask. Maybe someone else can be of more help. However I don't think with your vague description you get a better answer ^^. (Though I could be wrong)
I understood well what you said which is quite clear and informative. :)
Your answer
Follow this Question
Related Questions
Is there any requirements for a server in order to host unity 3d games on it? 2 Answers
Networking with Linux 1 Answer
Run Unity apps on Linux 0 Answers
Textmesh alpha channel script doesn't work for linux builds. 0 Answers
Linux Master server 0 Answers