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 1362_05_05
folder.
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 files. Then, from the Inspector, change their Texture Type to Sprite (2D and UI), leaving the Sprite Mode as Single and the Pivot at Center. Click on Apply to confirm the changes, as shown in the following screenshot:From the Hierarchy view, create...