Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Unreal Engine Game Development Cookbook

You're reading from   Unreal Engine Game Development Cookbook Over 40 recipes to accelerate the process of learning game design and solving development problems using Unreal Engine

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784398163
Length 326 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 (13) Chapters Close

Preface 1. Getting Acquainted with the UE4 Interface 2. Level Design – Building Out Levels or Greyboxing FREE CHAPTER 3. Creating Quality Interior Environments 4. Building the Great Outdoors – Exterior Environments 5. Lights, Camera, Action – Cinematics 6. Lighting and Shadows 7. Art Pipeline – Working with Materials 8. Blueprint Scripting – Level Effects 9. C++ Programming – Gameplay 10. User Interface 11. Publishing and Deployment Index

Navigating the viewport

Now that we have an understanding of what the UI actually is all about, let's work with the viewport and learn how to move around and use it.

How to do it…

To get started, let's first try to move around in the game world a bit by using just the mouse:

  1. Inside the viewport, with the left mouse button clicked and held, move your mouse forward and you should notice the level moving as well. If you move your mouse backward, you should notice that the camera is moving in the same way, and when we move the mouse to the left and right, the camera turns, it doesn't move.
  2. Holding the right mouse button and moving the mouse will rotate the viewport camera in a similar manner to a First-Person Shooter (FPS) game. Moving the mouse up and down will make the camera loop upward and downward. And, when we move the mouse to the left and right, the camera behaves in the same manner.
  3. Holding the middle mouse button (scroll wheel) and moving the mouse will pan the camera in the direction you move it as if it is on a track.

    You can adjust the speed with which the camera moves by modifying the Camera Speed property in the top-right of the viewport to increase or decrease the amount of movement you need to travel via the camera. Alternatively, holding the left or right mouse button and scrolling the middle mouse button (wheel) will also change the camera speed.

    How to do it…
  4. In addition to rotating the camera like an FPS game, when holding down the right mouse button you can also use the W, A, S, and D keys to allow you to move just like you would in an FPS in Spectator mode.

    Note

    If you're not a fan of the right mouse button, you can hold any other button on the mouse and move. If you aren't a fan of the W, A, S, and D keys, you can also use the arrow keys or 8, 4, 6, and 2 keys on the numpad.

  5. You can also use the E and Q keys in order to rise or fall in the air and the C and Z keys to zoom in and out, respectively, by changing the field of view (FOV). This change in FOV is only temporary though as when you release the right mouse button, it will reset back to normal.
  6. The final way we can move through the viewport is very similar to how Maya users can move around their models. We activate this mode by holding the Alt key. If we click and drag, we will tumble around whatever is there in our current pivot in a similar manner as we orbit around the pivot. Clicking on the right mouse button and dragging will zoom the camera in and out of the pivot, while holding down the middle mouse button and dragging will move the camera in the direction of the mouse movement. We can change where our pivot is easily by selecting the object we want to move around and then pressing the F key to focus on it.

Note

For more information on moving around the viewport, refer to https://docs.unrealengine.com/latest/INT/Engine/QuickStart/2/index.html.

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