O'Reilly logo

Getting Started with Unity by Patrick Felicia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying a mini-map of the level

In this section, we will create a mini-map of the level to help the player navigate and anticipate the position of collectable objects or enemies. First, let's create a top-down view of the maze. To add a different view of the maze, we will create a new camera and display its content in the top-right corner of the screen as shown in the following steps:

  1. Create a new camera (Game Object | Create Other | Camera).
  2. Rename this camera camera1.
  3. Rotate this camera about 90 degrees around the x axis, so that its rotation properties are (x=90, y=0, z=0), and change its position to (x=0, y=50, z=0).
  4. If we click on this camera in the Hierarchy view, and look at the camera preview (that is, the rectangle in the bottom-right ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required