Adding AirSim to Custom Unity Projects#

Before completing these steps, make sure you have properly set up AirSim for Unity 1. Open the Containing folder of your custom unity project 2. Copy and paste the following items from Unity demo into the main project folder of your custom environment:

Assets
ProjectSettings
Copy and paste video

  1. Open your custom environment in Unity
  2. Drag your desired scene into the Scene Hierarchy panel
  3. Drag CarDemo into the Scene Hierarchy panel
  4. Copy the following items from CarDemo into your custom scene:
    Main Camera
    Directional Light
    AirSimHUD
    AirSimGlobal
    Car
  5. After removing CarDemo from the Hierarchy panel, save your modified scene as CarDemo. change scene
  6. Repeat Steps 5, 6 and 7 with DroneDemo. This time, save your custom scene as DroneDemo.

To run your project drag SimModeSelector into, and remove everything else from the Scene Hierarchy panel.

Your custom environment is now ready to interface with AirSim!