Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity Game Development Blueprints

You're reading from   Unity Game Development Blueprints Explore the various enticing features of Unity and learn how to develop awesome games

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783553655
Length 318 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
John P. Doran John P. Doran
Author Profile Icon John P. Doran
John P. Doran
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. 2D Twin-stick Shooter 2. Creating GUIs FREE CHAPTER 3. Side-scrolling Platformer 4. First Person Shooter Part 1 – Creating Exterior Environments 5. First Person Shooter Part 2 – Creating Interior Environments 6. First Person Shooter Part 3 – Implementing Gameplay and AI 7. Creating Save Files in Unity 8. Finishing Touches 9. Creating GUIs Part 2 – Unity's New GUI System Index

Placing tiles with grid snapping


Now that we have all of our tiles created, let's start building out our area:

  1. Put a tile prefab in the world of your choice. Hold down the Ctrl key, and pull it in an axis' direction. You may have noticed a little snap that you wouldn't see when moving normally. This is due to unit snapping.

    Grid snapping is a really useful tool when it comes to building stuff inside Unity. Instead of punching in numbers all the time when trying to set the positions of all of these tiles, we can just set our Snap size to be the size of our tiles 3.2 x 3.2 x 3.2.

    Note

    In addition to movement, we can also snap rotations and scaling.

  2. Go to Edit | Snap Settings; we can change the value to snap easily by changing Move of X to 3.2 and Move of Z to 3.561, taking into account the wall's thickness.

  3. Now that we have the snap settings working correctly, we will place a hallway to start our level and reset its Position property to (0, 0, 0).

  4. Next, duplicate the mesh by hitting Ctrl + D, and...

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 AU $24.99/month. Cancel anytime