Book Image

Learning Unreal Engine Android Game Development

By : Nitish Misra
Book Image

Learning Unreal Engine Android Game Development

By: Nitish Misra

Overview of this book

<p>Have you ever wanted to create games that will get users hooked to their phones? Unreal Engine 4, with all its tools and power, will help make your dreams come true! Designed to get you working with Unreal Engine 4 from the very first page, this book will quickly guide you through the basics in the first two chapters. Once you get the hang of things, we will start developing our game—Bloques!</p> <p>Bloques is a puzzle game with four rooms. Each room will be more challenging than the previous, and as you develop, you will graduate from movement and character control to AI and spawning. Once you've created the game, you will learn how to port and publish your game to the Google Play Store.</p> <p>In addition to building an Android game from start to finish, you will also discover how to generate revenue, and how to optimize game performance using the tools and functionalities the engine provides. With this book, you will be inspired to come up with your own great ideas for your future game development projects.</p>
Table of Contents (15 chapters)
Learning Unreal Engine Android Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Downloading and installing UE4


The process of downloading and installing UE4 is pretty straightforward; just follow these steps:

  1. Go to Unreal's official website (https://www.unrealengine.com/). The home page looks like the following screenshot:

    Everything you need to know regarding UE4, you can find here—including the latest news, the latest version of the engine, blog updates, latest Marketplace entries, and so on. As of 2015, the engine has been made free to download.

    In addition to the UE4 homepage, it is recommended that you visit https://docs.unrealengine.com/latest/INT/. It is full of documentation and video tutorials on how to use UE4. Epic boasts a large, active, and friendly community, always willing to help anyone facing a problem via the forums.

    Note

    You can access the forums by hovering over the COMMUNITY tab on the home page until the menu drops down, and then clicking on Forums, or you can simply visit https://forums.unrealengine.com/. Alternatively, you can also seek help via AnswerHub by visiting https://answers.unrealengine.com/.

  2. From the home page, click on the GET UNREAL button on the right of the screen. Clicking on it will bring you to the subscription page, shown here:

  3. In order to download and install UE4, you have to create an account. To create an account with Epic Games, just fill in the required information, and follow the instructions.

  4. To download the Engine Launcher, simply sign in. On your account page, you can access your profile, billing history, previous transactions, and so on.

  5. Now that you have your account set up, you can download UE4. You can download either the Windows version or the Mac version, depending upon your setup. To download, under Latest Download, click on the Download button and you will download the Engine Launcher.

  6. To run the installer, simply double-click on UnrealEngineInstaller-*version number*.msi if you are using Windows or UnrealEngineInstaller-*version number*.dmg if you are using a Mac. Follow the steps to install the Engine Launcher.

  7. After the installation is complete, run the Launcher. You should encounter the following screen.

    This is the login screen. Just type the e-mail address you used to subscribe and your password, then either click on the arrow button next to PASSWORD or hit the Enter key, to log in.

  8. Logging in will open the Engine Launcher. We will discuss it and its functionalities in detail later on, but for now, all you need to do is click on Library and click on the Add Versions button next to Engines. Doing so will create a slot. You can select a version number using the version dropdown in the version slot you added, then you can click on the Install button and the version of UE4 that you selected will begin downloading.

That is it! You have now downloaded and installed UE4 on your PC (or Mac). To launch the engine, simply click on the Launch button on the top-left corner of the Launcher, below the account name, and you are good to go. You can also launch previous versions of the engine if you require. Clicking on the downward arrow next to the Launch button will open a menu, with all of the versions of the engine listed, and to launch them, simply click on the version which you wish to run.

Alternatively, you can also click on the Library button, and select which engine to run from there. All of the versions installed on your system will be listed, and you can simply launch any version from the list by clicking on the Launch button.

But hold on! We have a few more things to discuss before we are ready to start using UE4. Let's take a quick look at the directory structure.

The Windows directory structure

The default location where UE4 is installed is C:\Program Files\Unreal Engine\. You can change this if you wish, during the installation process. Upon opening the directory, you will find that each version of the Engine has its own separate folder. Say, you have versions 4.1, 4.2, and 4.3 of UE4 installed on your system. You will find 3 separate folders for all three versions, namely 4.1, 4.2, and 4.3. The following screenshot will give you a better idea:

Each version of the Engine gets its very own folder. Apart from that, there are two other folders, namely DirecXRedist and Launcher.

Windows DirectXRedist

DirectXRedist is where the DirectX files are located. The folder also contains the installation file, from which you can install DirectX.

Launcher

The Launcher folder contains all the files for the Engine Launcher. The Launcher folder contains the following subfolders:

  • Backup: UE4 has an excellent feature that lets you create backups of your work. Should a developer make an unfixable or difficult-to-fix mistake or if the Engine crashes mid development, instead of having him/her do all the work all over again, a backup of their work will be stored in the Backup folder, so they can pick up where they left off.

  • Engine: This folder contains all of the code, libraries, and content that makes up the engine.

  • PatchStaging: Every now and then, Epic will release a new version of UE4. As of 2015, the latest version out is 4.7.6. (The preview version of 4.8 is available at the time of writing). When you are in the process of download, all of the data of the currently downloading version/versions of UE4 gets stored in the PatchStaging folder.

  • VaultCache: As will be explained later in the chapter, all that you need to know right now is that everything you purchase in the Marketplace is contained in the Vault. The VaultCache contains all of the purchased items' cache files.

4.X folders

Before we talk about the 4.X folders, you should know all versions of UE4 (4.1, 4.2, 4.3, and so on) work independent of each other. This means you do not require the previous version to run the later versions. For example, if you wish to run version 4.4, then you do not need to download versions 4.0, 4.1, 4.2, and 4.3 in order to run it. You can simply download version 4.4 and use it without any problems. This is the reason why there is a separate folder for every version of Unreal 4, each version is treated like a separate entity.

All of the 4.X folders, although separate, contain the same set of subfolders, hence they are grouped together. The following are the subfolders:

  • Engine: Similar to the Launcher's Engine folder, this contains all of the source code, libraries, assets, map file, and more that make up the Engine.

  • Samples: UE4 has two sample maps, Minimal Default, and Starter Map. This folder contains all the content including assets, blueprints, and more.

  • Templates: UE4 offers templates for various genres of games, for example first person, third person, 2D side scroller, top down, and many more. All of the content for each of these genres and the source code are contained here.