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.
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
How to do it...
To create a mini-map, follow these steps:
- Import the
BasicScenepackage into a new Project. Also, import the provided
pngfiles. Open the BasicScene level.
- From the Project view, select the