
Unreal Engine 4 Game Development Quick Start Guide
Programming professional 3D games with Unreal Engine 4
- 202 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Unreal Engine 4 Game Development Quick Start Guide
Programming professional 3D games with Unreal Engine 4
About this book
Learn how to use Unreal Engine 4 by building 3D and multiplayer games using Blueprints
Key Features
- Learn the fundamentals of Unreal Engine such as project templates, Blueprints, and C++
- Learn to design games; use UMG to create menus and HUDs, and replication to create multiplayer games
- Build dynamic game elements using Animation Blueprints and Behavior Trees
Book Description
Unreal Engine is a popular game engine for developers to build high-end 2D and 3D games.
This book is a practical guide, starting off by quickly introducing you to the Unreal Engine 4 (UE4) ecosystem. You will learn how to create Blueprints and C++ code to define your game's functionality. You will be familiarized with the core systems of UE4 such as UMG, Animation Blueprints, and Behavior Trees. You will also learn how to use replication to create multiplayer games. By the end of this book, you will have a broad, solid knowledge base to expand upon on your journey with UE4.
What you will learn
- Use project templates to give your game a head start
- Create custom Blueprints and C++ classes and extend from Epic's base classes
- Use UMG to create menus and HUDs for your game
- Create more dynamic characters using Animation Blueprints
- Learn how to create complex AI with Behavior Trees
- Use replication to create multiplayer games
- Optimize, test, and deploy a UE4 project
Who this book is for
Readers who already have some game development experience and Unity users who would like to try UE4 will all benefit from this book. Knowledge of basic Object-Oriented Programming topics such as variables, functions, and classes is assumed.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Creating HUDs and Menus Using UMG
- The Widget Blueprint window
- Setting up an interactive menu
- Commonly used widgets
- Adding widgets to other widgets
The Widget Blueprint window
- In the Content Browser, navigate to the ThirdPersonBP\Blueprints folder.
- Right-click on the folder, then, at the bottom of the menu, hover over User Interface and click on Widget Blueprint.
- Name it MyWidget. We now have our Widget Blueprint asset, which is represented by a health bar icon, as shown in the following screenshot:

- Double-click on the Widget Blueprint asset and you should see the Designer menu for our Widget Blueprint asset appear as follows:

Showing Widget Blueprints in our game
- Open up the ThirdPersonCharacter Blueprint and navigate to Event Graph.
- Right-click on the Code window and type BeginPlay to place a BeginPlay event.
- Next to it, right-click on the window and type Create Widget to place a constructor for the widget classes.
- Connect the BeginPlay output to the widget constructor input.
- In Class input, select MyWidget from the drop-down menu.
- Widgets require a PlayerController class as their owner, so, under the BeginPlay event, right-click and type Get Player Controller to place that node.
- Connect the Get Player Controller output to the Owning Player input of the widget constructor.
- This code will create the widget, but we need to do one more thing to display it. Drag a connection from the Return Value output of the widget constructor and type Add To Viewport to create a function call, which should automatically connect to the execution output.

- In the upper-left corner of the Designer window, you'll see a Palette tab, which has a list of available widgets that we can add to our UI. In the Common category near the bottom, you will see Text. Drag the property into the main Designer window.
- By default, text will display Text Block, so let's change that as well. In the right-hand side Details tab, under the Content category,...
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Introduction to Unreal Engine 4
- Programming Using Blueprints
- Adding C++ to a Blueprint Project
- Creating HUDs and Menus Using UMG
- Animation Blueprints
- AI with Behavior Tree and Blackboard
- Multiplayer Games
- Optimization, Testing, and Packaging
- Another Book You May Enjoy