O'Reilly logo

Unity 5.x Cookbook by Chico Queiroz, Matt Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required