skip to Main Content

World Map Calculator

This component is useful to:

  • Convert units from one coordinate system to another (for instance from plane coordinates to degrees and viceversa).

  • Calculate the distance between cities.

You may also use this component to capture the current cursor coordinates and convert them to other coordinate system.

You may enable this component in two ways:

  • From the Editor, clicking on the “Open Calculator” button at the bottom of the World Map inspector.

  • From code, using any of its API through map.calc accessor. The first time you use its API, it will automatically add the component to the map gameObject.

On the Inspector you will see the following custom editor:

Back To Top