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.

  1. Click on the brownstone apartment building GameObject and delete it from the Scene.
  2. Go to GameObject | Create Other | Camera to add a second camera to the scene.
  3. Rename the camera SpaceCam.
  4. In the Project panel, select the starfield texture.
  5. Go to GameObject | Create Other | GUI Texture.

    Suddenly, the starfield image appears in the Game view as shown in the following screenshot:

    Time for action – space the shooter up a bit

Suddenly, the starfield image ...

Get Unity 4.x Game Development by Example Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.