Book Image

Unreal Engine 4 Game Development Quick Start Guide

By : Rachel Cordone
Book Image

Unreal Engine 4 Game Development Quick Start Guide

By: Rachel Cordone

Overview of this book

Unreal Engine is a popular game engine used by developers for building high-end 2D and 3D games. This book is a practical guide designed to help you get started with Unreal Engine 4 and confidently develop interactive games. You’ll begin with a quick introduction to the Unreal Engine 4 (UE4) ecosystem. Next, you’ll learn how to create Blueprints and C++ code to define your game's functionality. As you progress, you’ll cover the core systems of UE4 such as Unreal Motion Graphics (UMG), Animation Blueprints, and behaviour trees to further build on your game development knowledge. The concluding chapters will then help you learn how to use replication to create multiplayer games. By the end of this book, you will be well-versed with UE4 and have developed the skills you need to use the framework for developing and deploying robust and intuitive games.
Table of Contents (10 chapters)

Creating C++ classes in UE4

To create our first C++ class, right-click in the asset panel of the Content Browser (or click Add New at the top left of it) and click New C++ Class...:

Unlike the usual UE4 assets, our C++ code will reside in a folder outside Content, so it won't matter which asset folder you're currently in when you add a New C++ Class.

Now, we need to decide what to extend from. Most of the time, we'll be working with Actor classes (including Pawn, PlayerController, and GameMode), and the most commonly extended classes will appear in the list that pops up:

While scrolling down the list, you will find that there are also other useful classes to extend from, including the heads-up display (HUD) and slate widgets (both discussed in Chapter 4, Creating HUDs and Menus Using UMG) and Blueprint function libraries.

If we need to extend from a class that...