Tangram Unity is a library of tools for using OpenStreetMap data in the Unity3D game engine. This repository contains the code and GUI tools along with an example scene that demonstrates how to use them.
This project uses Unity version 2019.3.0f6.
- Create a Nextzen API Key
- Open the example scene
Assets/Scenes/RegionMapExample.unity
in Unity. - Select the
Map Builder
object in the scene and enter your API key in the "Api Key" field in the inspector. - Press the
Download
button in the inspector and wait a few seconds for the download to complete.
The scene should now contain geometry from New York City! To learn how to customize your own map with a different style or a different location, check out these documentation pages:
- Terrain support
- Tile streaming
- Map data access from game objects