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

Duplicating rooms / creating a hallway


Now that we've created a single room, let's see how easy it is to create an additional one.

  1. In the Project tab, select Create | Folder and name the new folder Prefabs. Move the newly created folder to the MyGame folder we created previously and double-click on the folder to enter it.

  2. Make sure you are in the Object/Top Level mode and then select the Simple Room object from the Hierarchy tab. Drag and drop it into our Prefabs folder from the Project tab. You'll notice that the object in the Hierarchy tab will turn blue to indicate that it is a prefab.

    Prefabs or the prefabricated objects are the objects we set aside to make copies of during runtime, such as AdvancedPlayer we used previously from UFPS. With this blueprint, we can create as many as we want. When you add a Prefab folder to a scene, you will create an instance of it. All of these instances are clones of the object located in our Assets. Whenever you change something in the prefab located in...

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}