Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Adding labels to the map

Brian Kircher edited this page Jul 13, 2020 · 3 revisions

The MapLabelLayer enables displaying the names of cities and neighborhoods on the map with localized text.

The MapLabel component is used to transfer label text to the GameObject. How this label is rendered is up to you, but the best approaches would involve using one of Unity's various text components, e.g. TextMeshPro.

Refer to the sample project to see a concrete example of such a prefab.

After the MapLabel prefab has been created, a MapLabelLayer component must be added to the MapRenderer. Then the label prefab is associated with the corresponding field in the MapLabelLayer.

Map Label Layer

Only one MapLabelLayer component can be added to a GameObject.


Clone this wiki locally