How to install unity linux game engine

How to install unity game engine on any linux based ubuntu without unnecessary hack and headache with whine. Here is the ultimate guide.

You have certainly heard of Unity3d software which is widely used to create video games and 3d apps.

For a long time it was believed that this software was only intended for owners of Windows PCs and Macs. The ideal alternative for linux game creators was Unreal engine.

Today, it is now possible to install Unity3d on linux without going through wine or any hacking technique.

In this tutorial we will install the game engine under linux. The operating system I used for the tutorial is ubuntu. You can apply the same method on any linux distribution based on ubuntu.

How to install unity linux game engine

The most important step in installing unity 3d in linux is installing Unity Hub. This installation software allows you to obtain all versions of unity 3d as well as project examples to quickly start developing your game.

The most crucial step to install unity on linux is therefore to install Unity Hub. In this section we will show how to install the unity installer on ubuntu (or debian) and on Red Hat Enterprise Linux (RHEL) or CentOS.

How to install Unity Hub for ubuntu or debian

The installation of this tool under ubuntu can be done simply in the terminal. Follow these instructions to the letter to succeed

1 – We will add the unityhub repository on ubuntu. Type the following commands

sudo sh -c 'echo "deb stable main" > /etc/apt/sources.list.d/unityhub.list'
wget -qO - | sudo apt-key add -

This last command saves the public encrypted key.

2- Now that the repository is installed, we can now install the tool in question. Write these instructions:

sudo apt update sudo apt-get install unityhub

If you were able to install UnityHub by this method, you can skip the next section to continue with the installation of Unity 3d. If that ever fails you can always try to install it the old way.

sudo apt-get remove unityhub

In case you want to uninstall it, just apply this command:

How to install Unity Hub for Red Hat Enterprise Linux (RHEL) or CentOS.

Installing this tool under redhat or centos can be done simply in the terminal. Follow these instructions to the letter to succeed

1 – We will add the unityhub repository on ubuntu. Type the following commands

$ sudo sh -c 'echo -e "[unityhub]\\nname=Unity Hub\\nbaseurl=https://hub.unity3d.com/linux/repos/rpm/stable\\nenabled=1\\ngpgcheck=1 \\ngpgkey=https://hub.unity3d.com/linux/repos/rpm/stable/repodata/repomd.xml.key\\nrepo_gpgcheck=1" > /etc/yum.repos.d/unityhub.repo'

2- Now that the repository is installed, we can now install the tool in question. Write these instructions:

$ sudo yum check-update $ sudo yum install unityhub

If you were able to install UnityHub by this method, you can skip the next section to continue with the installation of Unity 3d.

It is possible to uninstall the tool via the following command:

$ sudo yum remove unityhub

Install unity game engine for linux

Now that you've installed your Unity Hub brilliantly, it's time to install the Unity 3d game engine. To achieve this, you must log into your Unity 3d account. If you have not yet registered, registration can be done in two ways:

  • By application UnityHub where you can click on the link create accounts . (to connect it is the button Sign in of course ).

  • Directly through the website unity3d.com. You will then need to return to your Unity Hub to connect.

Once registration is complete, we can proceed to the next step. For this I will use my Unity Hub already installed as an example.

http://tedidev.com/wp-content/uploads/2021/09/Unity-3d-Comment-linstaller-sur-ubuntu_4.jpg

1 - When you click on the button installs located on the left of your window you will have a page which should look like the one in the image above. The only difference from mine is that it's going to be empty. Unless a ghost has already installed unity3d in your absence.

2 - Then click on the big button ADD blue located at the far right - top of your window.

http://tedidev.com/wp-content/uploads/2021/09/Unity-3d-Comment-linstaller-sur-ubuntu.jpg

3 - We're almost there. You will need to be on the page shown in the image above where you can choose between the different versions of Unity 3d software. Leave the default settings then press the buttons NEXT.

4 - From this step follow the instructions to install unity3d. The download may take a long time, so plan for a good internet connection and other offline activity while you wait for the download and installation process.

We have come to the end of the mini tutorial showing  How to install Unity3d on ubuntu without using Hack.

See also:

How to install unity linux game engine