Tool for importing .osm
(OpenStreetMap) maps to Unity as a 2D graph.
- Import
.osm
maps and convert them to Unity-compatible 2D graphs. - Visualize nodes and ways.
Import the .unitypackage file in the Releases page to your project.
-
Download the Map:
- Download your map from OpenStreetMap.
-
Open the Tool:
- Open the OSM Graph Tool in your Unity Editor's
Tools
menu.
- Open the OSM Graph Tool in your Unity Editor's
-
Import the
.osm
File:- Select the
.osm
file you've downloaded from OpenStreetMap.
- Select the
-
Node Prefab:
- Can be an empty object, or you can create a custom prefab (e.g., a sphere) for visualizing nodes.
-
Set Scale:
- Lower scale values generate larger maps but may impact performance.
-
Generate the Graph:
- Click the "Generate Nodes and Ways" button to generate the map.
Distributed under the MIT License. See LICENSE
for more information.