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:
- Import the
BasicScene
package into a new Project. Also, import the providedpng
files. Open the BasicScene level. - From the Project view, select the
Compass
,compassMarker
, andcompassMask
texture ...
Get Unity 5.x Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.