The following project was created in Unreal Engine 4.20.2.
It contains one map with a test track and some grass, traffic cones, blueprints for rain and changing of a day/night cycle.

For this project to work properly you will need Unreal Engine 4 and AirSim plugin to be installed on your computer.
- Download the Epic Games Launcher. Even thought Unreal Engine is an open source project, registration is still requered.
- Run the Epic Games Launcher, open the Library tab from left, click on the "Add Versions", which should show the option to download Unreal 4.20.2, and finally click on the "Install" button.
- For building AirSim you will need Visual Studio 2017 (make sure to install VC++ and Windows SDK 8.x).
- Start
x64 Native Tools Command Prompt for VS 2017. Create a folder for the repo and rungit clone https://github.com/Microsoft/AirSim.git. - Run
build.cmdfrom the command line. This will create ready to use plugin bits in theUnreal\Pluginsfolder.
-
Go to your folder for AirSim repo and copy
Unreal\Pluginsfolder in to yourTestTrackfolder. -
Right click the
TestTrack.uprojectin Windows Explorer and selectGenerate Visual Studio Project Files. This step detects all plugins and source files in your Unreal project and generates.slnfile for Visual Studio.
- Reopen
TestTrack.slnin Visual Studio, and make sureDebugGame EditorandWin64build configuration is the active build configuration.
-
Press
F5to run. This will build your project and start the Unreal Editor. -
When in Unreal Editor navigate to
World Settings, which should be on the right side of the Editor window belowWorld Outliner.
Note: If you do not see it, navigate to Window on the menu bar and choose World Settings from the list below.

- Be sure to
Saveyour changes.
Note: I do not provide a guide on adding AirSim plugin to Unreal project on Linux since I did not have a good experience with it. Although if you build your project on Windows there should not be any problems migrating it on Linux.
Tested on Ubuntu Bionic Beaver (18.04) and Debian Stretch (4.9.88).
- Register to EpicGames following these instructions
- The scripts provided with UnrealEngine and AirSim will try to install everything you need using apt-get. If an installation fails, then that package may not be present.
- in particular,
clang-5.0usually misses. To install it you can add llvm repositories to your/etc/apt/sources.listfile:
Then in a terminal:# Substitute "stretch" with your distribution name # For more info http://apt.llvm.org/llvm deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 main deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 mainwget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - sudo apt-get update - in particular,
A script for automatic installation is provided:
- Run
./install_all.sh where_to_install(default folder is parent folder of this repository) - Cross your fingers and don't go take a coffee cause you will be prompted for sudo password
- Go take a coffee and wait a lot
- You will be prompted for sudo password again after compilation of UnrealEngine
- UnrealEngine will start automatically (after a very long initialization). Go to step 3 of "Adding AirSim plugin to Unreal project" section under "Manual".
Clone Unreal Engine in your favorite folder and build it.
# go to the folder where you want to clone the GitHub project
git clone -b 4.20.2-release https://github.com/EpicGames/UnrealEngine.git
cd UnrealEngine
./Setup.sh
./GenerateProjectFiles.sh
make
Note: The installation and building of the engine might take a while so be patient. :)
Clone AirSim and build it:
# go to the folder where you want to clone the GitHub project
git clone https://github.com/Microsoft/AirSim.git
cd AirSim
./setup.sh
./build.sh
After all preparations are done you can finally git clone https://github.com/Onekke/TestTrack.git in your command line or using GitHub Desktop.
-
Copy
AirSim/Unreal/Pluginsfolder into yourTestTrackfolder. -
Open UE4Editor (
UnrealEngine/Engine/Binary/Linux/UE4Editor). -
After it has successfully opened (it takes a while), go to Projects tab, click on "Browse..." button on bottom right corner and choose the file
TestTrack.uproject. -
When in Unreal Editor, navigate to
World Settings, which should be on the right side of the Editor window belowWorld Outliner.
Note: If you do not see it, navigate to Window on the menu bar and choose World Settings from the list below.

- Be sure to
Saveyour changes.
These are some (of the many) issues I encountered while installing everything.
To solve this problem, try deleting it and trying again.
rm -r UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux
TestTrack/install_all.sh
Check thay $DISPLAY environment variable is correctly set and that OpenGL is correctly installed.
You didn't read the prerequisites, did you?
- While creating the project in Unreal Engine I followed the Unreal Assets Naming Convention, so getting around it should be pretty straight forward.
- When in Unreal Editor you will always see an empty new level at start, navigate to
Maps/TestMapsand doubleclickTestTrackthis will load the map with a test track and everything else set and ready to play around with. - As default day/night cycle is set to be changed in a very short period of time. To change that or use system time instead click on
Edit BP_Day_Night_CycleinWorld Outliner, then changeNew Ratevalue inSet Play Rateor follow the comments in the blueprint to set the system time in use. - To activate/diactivate rain press
Gwhile inPlay modeor navigate toBlueprints > Open Level Blueprintto make any changes you want. - While in
PlaypressF1to toggleHelpscreen from AirSim plugin for some usefull shortcuts. - To activate/deactivate day/night cycle press
Twhile inPlay mode. That will trigger cycle to start from the noon or stop at time set to 12:00am. In case you want to change that time setting navigate toEdit BP_Day_Night_CycleinWorld Outlinerand changeSetnodeNewTimeto new value.

