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, select GameObject | Create Other | Camera.
- Rename the new camera hallwayCam.
- Change the Transform settings of hallwayCam to:
- Select the hallwayCam in the Hierarchy panel.
- In the Inspector panel, adjust the following settings:
- Clear Flags: Solid Color
- Depth: -1
- Culling Mask: nothing (This deselects everything in the culling mask list.)
- Culling Mask: hallway (This selects only the hallway layer, which contains our hallway model.)
- Flare Layer: unchecked/removed
- Audio Listener: ...