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! 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
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Unreal Engine Game Development Cookbook
Unreal Engine Game Development Cookbook

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
Profile Icon John P. Doran
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
Paperback Oct 2015 326 pages 1st Edition
eBook
$38.99 $43.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon John P. Doran
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
Paperback Oct 2015 326 pages 1st Edition
eBook
$38.99 $43.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$38.99 $43.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Unreal Engine Game Development Cookbook

Chapter 1. Getting Acquainted with the UE4 Interface

In this chapter, we'll cover the following recipes:

  • Installing UE4 and folder structure
  • UI overview
  • Navigating the viewport
  • The Content Browser overview
  • Importing your own content

Introduction

UE4, created by Epic Games, is a robust game engine that contains several different game development tools, which can create any kind of game imaginable, with many areas for specialization. It would be good for newcomers to the Engine to first have a basic understanding of what the entire Unreal Engine consists of and then dive into the different areas that they are interested in.

These first recipes may seem a bit difficult for those who are unfamiliar with game development, but after a short period of time, it will become second nature to them. In this chapter, readers will gain some fundamental knowledge and have some awareness that will help and prepare them for the upcoming chapters.

Installing UE4 and folder structure

Now, in order to use UE4 at all, we have to have it installed on our computer. Even after we install it, we may also want an overview of what it is. In case you haven't installed it yet, here is how you can do this.

How to do it…

Now that we have our project set up, let's get started with creating our player:

  1. In the web browser of your choice, go to http://unrealengine.com.
    How to do it…
  2. Once on this page, click on the light blue GET UNREAL button.
    How to do it…
  3. Once on the Join the Community page, fill out the information and create your account!

    It's important at this point to note the subscription plan that Unreal has for its user. You need to pay a 5 percent royalty to Unreal for any games that you publish. Of course, if the title is released for free, you don't need to pay anything.

    Note

    If you happen to be a student who is 13 or above and are enrolled in a degree or diploma granting course of study, GitHub has a pack of resources for student developers that currently includes free subscription to Unreal Engine 4 for a year. If you have a school-issued e-mail address, valid student identification card, or other official proof of enrollment, check it out at https://education.github.com/pack.

    If you happen to be a teacher or school administrator, it may also be possible to get access to UE4 for your school. Find out more at https://www.unrealengine.com/education.

  4. Once you are logged in to your account, make sure that you are on the Subscription tab and then click on the Download button on the right-hand side of the screen for the operating system of your choice (I am using Windows).
    How to do it…

    Note

    If by chance you don't see the preceding screen, you can always get the latest version of the software at https://www.unrealengine.com/dashboard.

  5. Next, once the installer has finished downloading, open it up and start the installation. If you see a security warning, click on the Run button.
  6. Go through the installation process, but make sure that the destination folder you're installing it in has a lot of disk space as UE4 will take up around 8 GB of space for each version that you have installed. Once the installation is complete, the Epic Games Launcher should open. If it doesn't, open it from your desktop.
  7. Once the launcher is open, fill in your e-mail and password and then click on the Sign In button.
    How to do it…
  8. When you log in, the current version of UE4 will begin to download. Take a break as this will most likely take a while. Once the download is finished, you can see the Launch button lit up.
    How to do it…

There's more…

Now that you have your UE4 installation completed, it's a good idea to see what actually has been installed. For a definition of what all of these folders are used for, please refer to https://docs.unrealengine.com/latest/INT/Engine/Basics/DirectoryStructure/index.html.

UI overview

One of the hardest things to understand when first starting out with a tool is knowing how to actually access all of the tools that are contained in the engine. Let's take a look at the interface of the Unreal Editor.

Getting ready

When you actually launch UE4 from the launcher, the first thing that you'll be brought to is Unreal Project Browser. Switch to the New Project tab, and you'll be given a choice of various templates to use for projects. For now, we'll stay with Blueprint visual scripting and will create a Blank project with starter content included so that we can see some stuff in the project. For the project's name, I have put UIOverview. Once finished, click on Create Project.

Getting ready

How to do it…

Now that we have our project set up, let's get started and see what the editor looks similar to:

  1. Once the project is opened, close the tutorial popup that comes up (if it does). This new window that's opened is referred to as the level editor, which is the core of content creation in UE4. Here, you can see the default interface layout:
    How to do it…
  2. At the top-left of the editor, you can see the Modes tab, which contains various tool modes to allow you to put things into the world, such as BSP brushes, painting, and foliage and terrain. Below this, you can see the Content Browser tab, which contains all of the models, textures, and data that make up our game worlds. We'll be exploring this much more in The Content Browser overview recipe later in this chapter.
  3. In the center, the largest window that you see is the viewport , which is the actual level that we are building. We will talk more about viewports in the Navigating the viewport recipe.
  4. To the right of the window, you will see the Scene Outliner tab, which will display all of the actors within our level. This is a useful tool for being able to find actors easily as well as adding a parent/child relationship to objects. Below the Scene Outliner tab, you'll see the Details tab, which contains information about whatever object is currently selected in the level or the Scene Outliner tab. For each component on the object, it will display the functionality for it, such as the transform and the materials the object uses.
  5. At the top, you'll see the tab bar, which will show the name of your project as well as a tab for the level that you currently have running with its name.
  6. Below this, you'll see the menu bar that will provide access to general tools and commands:
    • The File menu lets you save and open maps as well as projects. It also allows you to import/export actors.
    • The Edit menu allows you to copy and paste actors as well as configure properties in the editor. In this menu, users can configure Editor and Project Settings as well. It is in these settings that let you create the icons for the game launcher, set up input actions for your game type, and so on.
    • The Window menu allows you to toggle visibility of the various things that UE4 contains and save or reset your layouts.
    • The Help menu has a number of additional resources to help make working in UE4 as painless as possible.
  7. On the right-hand side of the menu bar, you'll see a search bar that you can use to look for help. The far right of the bar shows whether you are currently connected to source control through Subversion (SVN) or Perforce, which would be useful when you're in teams.
  8. Finally, below this in the center is the toolbar that contains a group of commonly used shortcuts to make it easier to find certain things.

    Note

    For more information on the default interface, check out https://docs.unrealengine.com/latest/INT/Engine/UI/LevelEditor/index.html.

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.

The Content Browser overview

The Content Browser is a central repository for creating, importing, and modifying all of the content that we use within UE4. This contains all of the assets that our project is made of, and it's important to have a good idea about how to use it.

Getting ready

This recipe assumes that you have a project open with the sample assets included. If you do not have that yet, feel free to follow the instructions in the Getting ready section of the UI overview recipe.

How to do it…

Now that we know how to move around the viewport, we will next want to get acquainted with the Content Browser, which is what we use in order to import or modify contents for our project:

  1. By default, the Content Browser tab is docked in the lower-left corner of the main Level Editor interface, but it can be redocked anywhere within the Level Editor or floated as its own window. You can make it float as a separate window by clicking on the Content Browser tab and dragging it off. If you have a second monitor, having one for the Content Browser tab can often be a nice way to work as you'll often be grabbing things from there and bringing them into the world when building levels.
  2. Close the Content Browser tab by clicking on the X button in the top-right corner of it. To bring it back, go to Window | Content Browser | Content Browser 1.

    Note

    Alternatively, you can also click on the Content shortcut icon above the viewport or press Ctrl + Shift + F to bring the Content Browser tab back.

  3. You can snap the Content Browser tab back to where it was by dragging the tag over it and releasing. You can also create multiple Content Browser tabs to allow you to see multiple things at a time or to move assets between folders easily.
  4. The interface of the Content Browser tab needs space to look nice. Move your mouse over to the edge of the Content Browser tab and drag to extend it. Do the same from the top. Next, double-click on the StarterContent folder to open it.
    How to do it…
  5. The top section is called the navigation bar. It allows you to create, import, and save assets on the left-hand side as well as to move through the different folders in a similar way to a web browser.
  6. Below this on the left-hand side is the sources view. This contains a list of all the folders and collections inside the project, formatted in Folder Hierarchy. Extend the StarterContent folder in the view to see all the folders.
  7. Below this is the Collections view, which provides easy access to your created collections. Collections are a way for us to organize assets into personally-defined groups, such as all characters or environment meshes for a level. Unlike being in a folder, you can think of all of the objects in a collection as being a reference or shortcut to that content. This can be collapsed if you're not using it by clicking on the icon to the left of the Collections text.
  8. On the right-hand side, below the navigation bar, is the asset management area. This is used mostly for filtering out files or searching for a particular asset that we will see below in the asset view.
  9. Below that is the asset view, which is the largest section of the UI. This is a grid displaying all the items that meet the filter requirements in the navigation bar's folder. Right-clicking on an asset or folder will show contextual options based on the objects. All of the assets you see can be dragged and dropped into a scene easily by clicking on the Shapes folder and dragging one of the objects into your scene.
    How to do it…
  10. You can also create new objects within the folder you have selected by right-clicking on some open space and then selecting the desired asset from the menu.
  11. In the bottom-right corner of the Content Browser tab, you'll see View Options. Select it and notice that you can view these assets in three different styles. Go through each of them and note the differences. Each of them have their own advantages and disadvantages; it's good to know that they all exist. You can also change the size of the thumbnails and this may be helpful as the number of objects that you have increases.

In View Options, users can also see the game engine's contents by selecting Show Engine Content. This will allow you to see all of the content included in the engine, by default, which can be quite useful for creating content for the game projects of your own.

Importing your own content

Now that we have a good foundation on the Content Browser tab, let's start off by bringing in some of our own content into the game.

Getting ready

This recipe assumes that you have a project open with the sample assets included. If you do not have that yet, feel free to follow the instructions in the Getting ready section of the UI overview recipe.

In addition, this recipe uses assets from the example code provided for the book. If you do not have it, download it from the Packt Publishing site at http://www.packtpub.com

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

How to do it…

Let's start off by importing a simple model from the Content Browser tab.

  1. Make sure that the Content Browser tab is at the Game folder and then click on the Import button.
  2. Once there, browse to the location where the example code of this chapter is placed and open the Ship folder. Select the Ship.fbx file and then click Open.
  3. You'll be prompted with an FBX import dialog, click on Import, and you should see your new asset included in the Content Browser tab, accompanied by Materials that was created to be used for the Ship model.
    How to do it…
  4. The other way to import assets is simply by dragging and dropping them into the Content Browser tab. Let's do this by opening up our Ship folder in our operating system and then dragging it onto the asset view of the Content Browser tab. You'll notice that textures (images) do not have a dialogue like the model did.
  5. Currently, all of the objects have a * in the bottom-left corner of their images. This is because they are currently not saved to the project. Fix this by clicking on the Save icon (blue floppy disk) in the Content Browser tab.

    Alternatively, you may also right click within the Content Browser tab and then navigate to Import to /Game to import assets into your scene from whatever folder you are currently in.

Left arrow icon Right arrow icon

Description

Unreal Engine is powerful tool with rich functionalities to create games. It equips you with the skills to easily build mobile and desktop games from scratch without worrying about which platform they will run on. You can focus on the individual complexities of game development such as animation and rendering. This book takes you on a journey to jumpstart your game design efforts. You will learn various aspects of the Unreal engine commonly encountered with practical examples of how it can be used, with numerous references for further study. You will start by getting acquainted with Unreal Engine 4 and building out levels for your game. This will be followed by recipes to help you create environments, place meshes, and implement your characters. You will then learn to work with lights, camera, and shadows to include special effects in your game. Moving on, you’ll learn Blueprint scripting and C++ programming to enable you to achieve trigger effects and add simple functionalities. By the end of the book, you will see how to create a healthbar and main menu, and then get your game ready to be deployed and published.

Who is this book for?

This book is for those who are relatively experienced with Unreal Engine 4 and have knowledge of its fundamentals. Working knowledge of C++ is required.

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 30, 2015
Length: 326 pages
Edition : 1st
Language : English
ISBN-13 : 9781784398163
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Oct 30, 2015
Length: 326 pages
Edition : 1st
Language : English
ISBN-13 : 9781784398163
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 164.97
Building an RPG  with Unreal 4.x
$54.99
Unreal Engine Game Development Cookbook
$54.99
Unreal Engine Game Development Blueprints
$54.99
Total $ 164.97 Stars icon

Table of Contents

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

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 50%
4 star 0%
3 star 50%
2 star 0%
1 star 0%
Ivan Carmosino Apr 09, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Chiaro e completo inglese per nulla difficile e decisamente scorrevole. Inoltre c'è la possibilità di avere sul sito dell'editore anche le figure a colori. Spettacolo
Amazon Verified review Amazon
ViceVersa May 01, 2016
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
like half of what he goes over in this book is very common knowledge. Unless you are absolutely brand new to unreal, and for some reason dont know how to use youtube, i wouldnt recommend it.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.