Download and Create a Project in Unity Engine - Thamaralins/unity_simulation_workshop GitHub Wiki

Installing Unity on Windows and Linux

This tutorial will guide you through the process of installing Unity on both Windows and Linux (Ubuntu 22) operating systems. Unity is a powerful game development engine that supports a wide range of platforms and devices and has been heavily used for robotics simulation.

To install any version of Unity and manage your projects, you must first have Unity Hub installed. Within it, you can create new projects, install different versions of the Unity Editor, access learning materials and community links.

Step 1: Install Dependencies (Linux Only)

  1. Open a terminal window.

  2. Run the following commands to install required dependencies:

    $ sudo apt update
    $ sudo apt install libgconf-2-4 libglu1 libxcursor1 libxrandr2 libxinerama1 libxi6
    
  3. If you are using Ubuntu 22, you will also need to download and install the "libssl1.1_1.1.1f-1ubuntu2.18_amd64.deb" package. This package is in the "Download Unity (.deb)" folder located in this repository.

    $ sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.18_amd64.deb
    

Step 1.1: Download and Install Unity Hub (Windows)

  1. Visit the Unity Hub download page on your web browser.
  2. Click on the "Download for Windows" button in the "Download Unity Hub" section and save the installer to your computer. unity_download_page
  3. Run the downloaded installer.
  4. Follow the on-screen instructions to complete the installation of Unity Hub.

Step 1.2: Install Unity Hub (Linux)

  1. Add the public Unity Hub repository:
    $ wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null
    $ sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
    
  2. Update the package cache and install the Unity Hub:
    $ sudo apt update
    $ sudo apt-get install unityhub
    

Step 2: Install Unity

  1. Open Unity Hub.
  2. Click the "Installs" tab on the left sidebar. unity_install
  3. Click the "Install Editor" button to select the version of Unity you want to install. It's recommended that you install a LTS version.
  4. Choose the desired components and modules you want to install along with Unity. You can just leave everything blank.
  5. Click the "Install" button and wait until the installation is completed.
  6. Once the installation is complete, Unity Hub will display the installed version under the "Installs" tab.

Step 3: Create your first project in Unity

  1. Open Unity Hub.
  2. Click the "Projects" tab on the left sidebar.
  3. Click the "New Project" button. If you want to create a realistic robotics simulation, we recommend that you choose the "3D (HDRP)" template. unity_create_project Congratulations! You have successfully installed Unity on Windows or Linux operating system and created your first project. You can now start creating amazing simulations and applications using the Unity game development engine.