Skip to content

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

License

Notifications You must be signed in to change notification settings

enisbt/osm-unity-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages