Adding a top-down orthographic minimap Camera
We saw how we could improve the information shown to the player by using two Cameras displaying the screen. In this recipe, we’ll create a third Camera to add to our player’s view:
- Camera 3: A simple minimap located at the bottom left of the screen, created from a top-down orthographic (non-perspective) Camera
Figure 13.16: The game running showing the added minimap Camera in the bottom-left of the screen
Getting ready
This project follows on from the previous one, so make a copy of that and work on that copy.
How to do it...
To add a top-down orthographic minimap Camera, perform the following steps:
- In the Hierarchy panel, create a third Camera named
Camera–3 - minimap
. Delete its AudioListener component (since we should only have one in a scene, and there is already one in theMain Camera
). - Make
Camera–3 - minimap
render to the bottom-left corner of...