Unity Installation


  1. Click on this link, and click Download Unity.
  2. Open your terminal. Go to the directory where UnityHub.AppImage is. Run chmod +x UnityHub.AppImage.
  3. Create your Unity account. Don't pay, it is free, the personal account is enough for creating games.
  4. Click your UnityHub,AppImage. You will constantly see, the software asking for license. Don't panic, it is free.
  5. Log in the interface of Unity Hub. Go to manage License, and activate a free personal one.
  6. Go to Installs, click ADD, just install a whatever version.

ML Agents Installation and Testing

  1. Go to GitHub repo Unity-Technologies/ml-agents. Look for Release Section, Click ML-Agents Release 2 released from May 20 2020.
  2. Unzip the source folder.
  3. Open a new project in UnityHub.
  4. Click Tab Window, then Package Manager. Find ML Agents version 1.0.2 released from June 08 2020, download it.
  5. Click Assets. Drag ml-agents-release_2/Project/Assets/ML-Agents to Assets. It is normal that you have around 12 error warnings.
  6. To test the installation of Unity and ML-Agents, click ML-Agents, Examples, WallJump, Scenes and WallJump. This should show the scene of the game.
  7. Click Play. If it is running, the installation is successful.

Compatibility with vscode

  1. [VS Code] Error: The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found.

    
    sudo apt install gnupg ca-certificates
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
    sudo apt update
        

    Then go to your vscode, File → Preferences → Settings → Use Search bar: "Omnisharp: Use Global Mono" → Change to always.

References


  1. Installing the Unity Hub
  2. Download Unity
  3. Unity Manual
  4. How do I activate my license?
  5. Unity-Technologies ML-Agents Repositry