Chapter 5. Using Cameras

In this chapter, we will cover:

  • Creating a picture-in-picture effect
  • Switching between multiple cameras
  • Making textures from screen content
  • Zooming a telescopic camera
  • Displaying a mini-map
  • Creating an in-game surveillance camera

Introduction

As developers, we should never forget to pay attention to the cameras. After all, they are the windows through which our players see our games. In this chapter, we will take a look at interesting ways of using cameras that enhance the player's experience.

The big picture

Cameras can be customized in many ways:

  • They can exclude objects on specific layers from rendering
  • They can be set to render in Orthographic mode (that is, without perspective)
  • They can have their Field of View (FOV) manipulated ...

Get Unity 5.x Cookbook 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.