Creating a mini-map

In Chapter 5, Lights, Cameras, and Shadows, you learned about how to use cameras for mini-maps. In this section, we will implement a mini-map for our game. This mini-map will provide a top-down view of our game, centered on the sandbox area you created in Chapter 8Implementing Our Non-Player Character. The player can use this mini-map as a radar to help find Cucumber Beetles in the sandbox.

First, we need to turn the Scene view 2D toggle off. This will put the Scene view back into 3D mode.

Here are the steps for creating a mini-map in our game:

  1. Right-click on an empty area of the Hierarchy panel and select Camera
  2. Rename the camera as Camera_Minimap
  3. Double-click the Camera_Minimap camera in the Hierarchy panel to focus ...

Get Getting Started with Unity 2018 - Third Edition 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.