O'Reilly logo

Unity 4.x Cookbook by Matt Smith, Chico Queiroz

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 they might need when in first- or third-person mode.

Getting ready

In order to follow this recipe, please import the miniMap package, available in the 0423_02_08 folder, into your project. The package includes a scene containing a third-person controller inside a simple maze, and also a texture named marker.

How to do it...

To create a mini-map, follow these steps:

  1. Import the miniMap Unity package and open the scene named thirdPerson, available in the 02_08 folder.
  2. Select the 3rd Person Controller option and, in the Inspector view, add it to a new layer named NoMap:
  3. Create a new ...

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