Time for action – meet me at camera two
In order to pull off this foreground/background effect, we'll need two cameras. Let's create the second camera and set it up to look at the hallway.
- In the menu, navigate to GameObject | Create Other | Camera.
- Rename the new camera
hallwayCam
. - Change the Transform settings of
hallwayCam
to:Position: X:
6.5
, Y:1.2
, Z:-31.5
Set the Scene view to Top, and you'll see that the
hallwayCam
is now positioned at one corner of the hallway model. - Select the
hallwayCam
in the Hierarchy panel. - In the Inspector panel, adjust the following settings:
- Clear Flags: Solid Color
- Culling Mask: nothing (This deselects everything ...
Get Unity 4.x Game Development by Example Beginner's Guide 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.