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 8, Implementing 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:
- Right-click on an empty area of the Hierarchy panel and select Camera
- Rename the camera as Camera_Minimap
- Double-click the Camera_Minimap camera in the Hierarchy panel to focus ...