PIP Map Effect in Unity

In this tutorial we will look at how to use a picture-in-picture (PIP) effect to display a map in the top corner of the screen. The map allows a player to see where they are located in the game world and where nearby landmarks, objects or other players are.

The image below shows a game with a first person view as the main camera, and a PIP effect showing the player’s location on the game map in the top right corner of the screen.

A picture-in-picture (PIP) map in a first-person view game.
A picture-in-picture (PIP) map in a first-person view game.

Watch the video below to see how you can add a PIP map effect to your game in Unity.

In this scene you can’t actually see the red sphere in the first person view because the character is inside the sphere. However, if you were using a third person view, you would probably see the sphere. In this case, you would want to hide the sphere on the first person camera and only show it on the map camera. This is possible to achieve with the use of layers which is what we will look at in the next tutorial.

Tip: You might want to have the object that represents a blip on the map to be higher so that it is still visible if a character goes inside a building or cave or under another object.

Go further

See if you can work out how to have the map camera follow the player around so that their blip doesn’t disappear off the map. This is something you will need to know if you have large scenes where the camera does not cover the entire scene.