O'Reilly logo

Building an FPS Game with Unity by John P. Doran

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 main menu: part 1 – adding text

Games don't just launch straight into the gameplay. Generally they start off with some kind of Title Screen with the game's name and the option for you to play or quit. This will be a good way to get some familiarity with how the new Unity GUI system (as of Unity 4.6) works with some simple UI elements. To start off, let's add some descriptive text that will display our game's name.

  1. To start off we will need to create a new level for our main menu to exist in, so to do that go to File | New Scene.
  2. Now we could add objects into this level, but for our purposes let's make it blank. From the Hierarchy tab, select the Main Camera object, under Clear Flags select Solid Color, and then under Background change ...

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