Adding Assets

The main repository for the LGSVL Simulator does not contain and environments or vehicles. Currently there are several open-source examples.

Environments:

Vehicles:

Table of Contents

Adding an Asset top#

Assets need to be cloned into a specific location in the project:

  • simulator/Assets/External/Environments for Environments
  • simulator/Assets/External/Vehicles for Vehicles

Clone the desired asset into the appropriate folder. Do not change the name of the folder that the asset is cloned into, it must match the name of the asset.

For environments: simulator/Assets/External/Environments/Mars must contain simulator/Assets/External/Environments/Mars/Mars.unity

For vehicles: simulator/Assets/External/Vehicles/Rover must contain simulator/Assets/External/Vehicles/Rover/Rover.prefab

Building an Asset top#

Assets are built using the same build script as the simulator. Follow the build instructions through step 17.

IMPORTANT Windows and Linux support must be installed with Unity to build assetbundles

Check Asset Consistency top#

There is a tool to check if there are any inconsistencies in assets.

Run Check... in Unity: Simulator -> Check...

The script checks if the project structure is correct: assets are named correctly, assets are in the correct location, etc. This will generate a list of warnings and errors.