Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.39 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.39 KB

osm-unity-graph

Sample Map

Unity 2021.3+ License: MIT

Tool for importing .osm (OpenStreetMap) maps to Unity as a 2D graph.

Features

  • Import .osm maps and convert them to Unity-compatible 2D graphs.
  • Visualize nodes and ways.

Installation

Import the .unitypackage file in the Releases page to your project.

Usage

  1. Download the Map:

  2. Open the Tool:

    • Open the OSM Graph Tool in your Unity Editor's Tools menu.

    Sample Input

  3. Import the .osm File:

    • Select the .osm file you've downloaded from OpenStreetMap.
  4. Node Prefab:

    • Can be an empty object, or you can create a custom prefab (e.g., a sphere) for visualizing nodes.
  5. Set Scale:

    • Lower scale values generate larger maps but may impact performance.
  6. Generate the Graph:

    • Click the "Generate Nodes and Ways" button to generate the map.

License

Distributed under the MIT License. See LICENSE for more information.