Airsim Unity allows you to run your simulators in the Unity Engine. This project comes with some sample Unity projects and a wrapper around the AirLib library to run as a native plugin in Unity.
We recommend using 2018.1 or later, and using the Unity hub. They can be downloaded here.
This repository comes with two basic Unity Projects, one for a Car simulator and another for a Drone simulator. They are meant to be lightweight, and can be used to verify your setup is correct.
Once you have things working in the basic projects, you can move on to the more detailed Unity projects. They can be found in the Releases tab.
Follow the instructions found here. You can skip the Unreal steps.
- Pick a project of your choice.
- Download the
AirLibWrapper.dll
at the Releases page. - If you are running a Drone project, download the
drone.obj
from the Releases page and place at pathUnity\DroneDemo\Assets\AirSimAssets\Models
- Setup your
Settings.json
file as described here - Open the project, and import the package at
Unity/AirsimAssets
You can build the AirlibWrapper project using Visual Studio 2017 or msbuild. Make sure you have all the proper Visual Studio dependencies before trying to build. See the AirLib setup instructions here for more details.
We recommend setting your configuration to Release
for better performance. Make sure to pick the right platform for your build (for example, x64).
This is currently unsupported, but we hope to add support for this in the future. This would involved building the AirlibWrapper to a plugin format as described here.
In the meantime, you can setup your simulator in the Windows Unity editor, and build for your desired platform.
See the details here on how to interact with your Airsim simulation using the API's.