Displaying a mini-map

In many games, a broader view of the scene can be invaluable for navigation and information. Mini-maps are great for giving players that extra perspective that they may need when in first- or third-person mode.

Getting ready...

For this recipe, we have prepared the BasicScene Unity Package, containing a scene named BasicScene. You will also need to import three image files named Compass.png, compassMarker.png, and compassMask.png. All files are available in the 1362_05_05 folder.

How to do it...

To create a mini-map, follow these steps:

  1. Import the BasicScene package into a new Project. Also, import the provided png files. Open the BasicScene level.
  2. From the Project view, select the Compass, compassMarker, and compassMask texture ...

Get Unity 5.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.