Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Unreal Engine 4 Game Development Quick Start Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
Unreal Engine 4 Game Development Quick Start Guide

Unreal Engine 4 Game Development Quick Start Guide

By : Rachel Cordone
4 (6)
close
close
Unreal Engine 4 Game Development Quick Start Guide

Unreal Engine 4 Game Development Quick Start Guide

4 (6)
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)
close
close

Using C++ functions in Blueprint

There are several ways that we can expose C++ functions to Blueprint, depending on what we need them to do. For our first example, we're going to make a simple function that we pass our float variable to and get an output from. Let's open up our C++ files and get started.

BlueprintCallable functions

For this first test, we're going to make a BlueprintCallable function. These work like the function calls we made back in Chapter 2, Programming Using Blueprints, with HandlePickedUp, except the actual code is in C++.

Our function will simply take a float and double it and then return that value. In the .cpp file, this is what the C++ code will look like for that:

In the .h file...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY