Time for action – space the shooter up a bit
I've never known a space shooter to take place in front of an apartment building, so let's get rid of our old backdrop. Then we'll pull a fun trick with multiple cameras to add a space backdrop to our game.
- Click on the brownstone apartment building GameObject and delete it from the Scene.
- Go to GameObject | Create Other | Camera to add a second camera to the scene.
- Rename the camera
SpaceCam
. - In the Project panel, select the starfield texture.
- Go to GameObject | Create Other | GUI Texture.
Suddenly, the starfield image appears in the Game view as shown in the following screenshot:
Suddenly, the starfield image ...
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.