Unity Mapbox SDK

Violet Whitney
Data Mining the City
3 min readOct 3, 2019
  1. Go to https://www.mapbox.com/unity/.
  2. Select Install the SDK→ → Sign up (free) and hit Get started. If you already have a mapbox account, you can log in with your usual credentials.
  3. From the Tools & Resourcesmenu → select Integrate Mapbox
Left: 2, Right: 3

4. Selectmapbox-unity-sdk_v2.1.0.unitypackage to download.

5. In your Mapbox account. Scroll to the bottom and select +Create a token → type a name for this token which you will use for your Unity Project (this allows you to create separate tokens and track usage for different Unity projects. → Scroll to the bottom and select Create token → Confirm Password → Scroll to the bottom where you will find your new access token. Hit the blue button to copy your access token.

Left: 4, Right: 5

6. Open up Unity. Create a new Unity project and name it whatever you like. In your new Unity project selectAssetsImport PackageCustom Packageselect your unzipped file from the Downloads folder and click open.

7. This opens a list of assets to import. Deselect everything except the Mapbox SDK and the Third Party Assets.

Left: 4, Right: 5

8. Go back to your Mapbox account. Scroll to the bottom where you will find your new access token. Hit the blue button to copy your access token. Go back to Unity and paste it under “Manage your tokens” and click submit.

9. Now in Unity test out the various game examples by going into the Assets folder→Mapbox→Examples→2_AstronautGame→then double click the Astronaut game and hit Unity’s play button to ensure it works

--

--

Violet Whitney
Data Mining the City

Researching Spatial & Embodied Computing @Columbia University, U Penn and U Mich