O'Reilly logo

Unity 4.x Cookbook by Matt Smith, Chico Queiroz

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

Creating a rearview mirror

In this recipe, we will take advantage of Unity Pro's ability to render camera views into textures to make a rearview mirror.

Getting ready

In order to follow this recipe, please use the example scene mirrorPackage, available in the Unity Package format in the 0423_11_02 folder.

How to do it...

To create a rearview mirror, perform the following steps:

  1. Import mirrorPackage and open the scene named mirrorScene, from the 11_02 folder.
  2. Using the Transform tools (Move and Rotate), place the Main Camera next to the left-hand side of the car, as shown in the following screenshot. Make sure the rearview mirror is framed.
    How to do it...
  3. In the Hierarchy ...

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