
Unity on Linux? No problem
- Tutorial
- Recovery mode

I think this idea of many of us has been tormented for a long time: But do not switch to me completely on Linux? So it was with me. Many days of thought, many pros and cons.
Everyone who opened this article more than once came across this kind of OS, but few stayed on it for a long time. The same thing happened with me. Often. One day I decided. I installed Mint 18, because for me, the most convenient one, I configured the drivers and off we go.
I thought how to install Unity so that it would not be through Wine. And lo and behold. Unity has long been a branch of Linux packages ready for installation. They have both a .sh script and a ready-made .deb package (links below).
Each released version of Unity is also assembled for our OC. There are jambs sometimes, but they are hardly noticeable and, in principle, for comfortable development there is everything that is needed and everything works well.
So. Unity is simple and easy.
- Using a ready-made .deb package through the manager
- Or through the terminal
sudo sh /path/to/*.sh
Then the confusion begins. I think you know that Unity uses its compiler. He is gentle .Net version 3.5.
I tried to run Rider from JB (everything is fine on windows, in Ubuntu, Mint swears at the lack of .Net 3.5), VSCode (the same thing and a little more) and the new MonoDevelop, which comes via flatpack. But with it turned out to be a bunch of problems, the main of which is incomplete, and on my part even incorrect reading of the file system. Climbing into the wrong sections, without seeing what is needed. As a result, the link is broken and you are unlikely to want to worry about setting up libraries every time. So I came up with a simple solution - put Mono from standard repositories through apt. Let's get started.
I advise you to do it before you start
sudo apt-get update
Updated.
Next is Mono version 5.9.6 \
sudo apt-get install monodevelop
So. We need the program itself. We got it. Pointing to it in Unity.
In Unity, go to Edit-> Preferences-> External Tools-> External Script Editor, select the monodevelop item.
Run. All is well. But the linker swears: dude, where's .Net 3.5? And many stop here. Mono has what are called mono-reference-assemblies. We need it.
sudo apt-get install mono-reference-assemblies-3.5
Bottom line: Unity is great friends with Linux, without creating development issues. Also, all the software that I had on Windows, I was able to replace with analogues on Linux Mint.
I have a third from the bottom