Linux
This section of the User Manual contains documentation on developing an application for the Linux platform. It covers the following topics:
Page | Description |
---|---|
Linux Player Settings | Use Player Settings to set the different options required for the final game built by Unity applicable for the Linux platform. For a description of the general Player Settings, see Player Settings Settings that let you set various player-specific options for the final game built by Unity. More info See in Glossary . |
Linux Build Settings | Use Build Settings to set up and begin the build process for your application on Linux. It contains settings to create development builds A development build includes debug symbols and enables the Profiler. More info See in Glossary and for publishing your final build. |
Additional resources:
For information on building Linux IL2CPP A Unity-developed scripting back-end which you can use as an alternative to Mono when building projects for some platforms. More info
See in Glossary Players, see Linux IL2CPP cross-compiler.
Linux
Unity provides support for developing applications on Linux. You can build your application as a standalone executable and run it on Linux systems that support the same architecture that Unity supports. You can also build your application as a library and use it as a plug-in A set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary in other applications.
Topic | Description |
---|---|
Linux Player Settings | Use Player Settings to set the different options required for the final game built by Unity applicable for the Linux platform. For a description of the general Player Settings, refer to Player Settings Settings that let you set various player-specific options for the final game built by Unity. More info See in Glossary . |
Linux Build Settings | Use Build Settings to set up and begin the build process for your application on Linux. It contains settings to create development builds A development build includes debug symbols and enables the Profiler. More info See in Glossary and for publishing your final build. |
Troubleshooting Linux Editor issues | Lists workaround for the known issues with the Linux Editor. |
Additional resources:
Linux
Unity provides support for developing applications on Linux. You can build your application as a standalone executable and run it on Linux systems that support the same architecture that Unity supports. You can also build your application as a library and use it as a plug-in A set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary in other applications.
Topic | Description |
---|---|
Linux Player Settings | Use Player Settings to set the different options required for the final game built by Unity applicable for the Linux platform. For a description of the general Player Settings, refer to Player Settings Settings that let you set various player-specific options for the final game built by Unity. More info See in Glossary . |
Linux Build Settings | Use Build Settings to set up and begin the build process for your application on Linux. It contains settings to create development builds A development build includes debug symbols and enables the Profiler. More info See in Glossary and for publishing your final build. |
Troubleshooting Linux Editor issues | Lists workaround for the known issues with the Linux Editor. |
Additional resources:
Linux
Unity provides support for developing applications on Linux. You can build your application as a standalone executable and run it on Linux systems that support the same architecture that Unity supports. You can also build your application as a library and use it as a plug-in A set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary in other applications.
Topic | Description |
---|---|
Linux Player Settings | Use Player Settings to set the different options required for the final game built by Unity applicable for the Linux platform. For a description of the general Player Settings, refer to Player Settings Settings that let you set various player-specific options for the final game built by Unity. More info See in Glossary . |
Linux Build Settings | Use Build Settings to set up and begin the build process for your application on Linux. It contains settings to create development builds A development build includes debug symbols and enables the Profiler. More info See in Glossary and for publishing your final build. |
Troubleshooting Linux Editor issues | Lists workaround for the known issues with the Linux Editor. |
Additional resources:
Unity на Linux? Да без проблем
Думаю долго мучает эта идея многих из нас: А не перейти ка мне полностью на Linux? Так было и со мной. Много дней раздумий, много за и против.
Все кто открыл эту статью, не раз сталкивались с этим родом ОС, но мало кто оставался на ней надолго. Тоже происходило и со мной. Очень часто. В один день я решился. Поставил Mint 18, так как по мне, самый удобный, настроил драйвера и пошло поехало.
Думал как ставить Unity так, чтобы не через Wine. И о чудо. Unity уже давно ведут ветку Linux пакетов, готовых к установке. Есть у них как и .sh скрипт, так и готовый .deb пакет(ссылки внизу).
Каждая выпускаемая версия Unity собирается и для нашей OC. Есть косяки иногда, но они малозаметны и, в принципе, для комфортной разработки есть всё что нужно и всё хорошо работает.
И так. Unity ставится просто и легко
- С помощью готового .deb пакета через менеджер
- Или через терминал
Дальше начинается неразбериха. Думаю вы знаете, что Unity использует свой компилятор. Ему нежен .Net версии 3.5.
Я пробовал для работы Rider от JB(на окнах всё хорошо, в Ubuntu,Mint ругается на отсутствие .Net 3.5), VSCode(тоже самое и ещё чуть чуть) и новый MonoDevelop, который поставляется через flatpack. Но с ним оказалась куча проблем, главной из которых является неполное, а с моей стороны даже некорректное чтение файловой системы. Лезет не в те разделы, не видя при этом то, что надо. В итоге нарушается линковка и вы вряд ли захотите каждый раз мучаться с настройкой библиотек. Поэтому я пришёл к простому решению — поставить Mono из стандартных репозиториев через apt. Приступим.
Советую сделать перед началом всего
Обновились.
Дальше ставится Mono версии 5.9.6\
sudo apt-get install monodevelop
И так. Нам нужна сама программа. Мы её получили. Указываем на неё в Unity.
В Unity идём Edit->Preferences->External Tools->External Script Editor выбираем пункт monodevelop
Запускаем. Всё хорошо. Но линковщик ругается: чувак, а где .Net 3.5? И многие тут стопорятся. У mono есть так называемые mono-reference-assemblies. Нам то оно и нужно
sudo apt-get install mono-reference-assemblies-3.5
В итоге: Unity замечательно дружит с Linux, не создавая проблем при разработке. Так же всё ПО, которое было у меня на Windows, я смог заменить аналогами на Linux Mint.