Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building an FPS Game with Unity

You're reading from  Building an FPS Game with Unity

Product type Book
Published in Oct 2015
Publisher
ISBN-13 9781782174806
Pages 326 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Building an FPS Game with Unity
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started on an FPS 2. Building Custom Weapons 3. Prototyping Levels with Prototype 4. Creating Exterior Environments 5. Building Encounters 6. Breathing Life into Levels 7. Adding Polish with ProBuilder 8. Creating a Custom GUI 9. Finalizing Our Project Index

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 the color to black.

  3. In order to create a GUI we need to have something called a Canvas in our scene, so to do this, we need to go to GameObject | UI | Canvas.

  4. It may be hard to see the object at this point, so let's go into 2D mode. We can do that by...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}