[Tutorial] Unreal C++ Delegates In Blueprints

Table of Contents

Our goal in this tutorial is to make a C++ Delegate (Event Dispatcher) that other developers can use and see in Blueprints. Designers/Developers should be able to bind to this delegate and call their desired functions when it’s broadcast.

Choosing The Correct Delegate Type

Anytime you want your C++ code to work with BP, it has to support reflection.   The keyword is Reflection, and of the four types of delegates listed, only 1 supports Reflection.

 

According to the Documentation, Dynamic Delegates are Delegates that can be serialized and support reflection. This is the only type of C++ delegate Blueprints will see and bind to. 

 

Unreal Engine has so far 4 Types of delegates in their Documentation. They are Single Cast Delegates, Multi-Cast Delegates, Event Delegates, and Dynamic Delegates. 

5/5

Gamechanger plugin for notehighway rhythm games and music visualizers

5/5

Add Text and 2D UMG widgets to Level Sequences

5/5

Simplify your Plugin Development with the Unreal Projects Manager

5/5

Learn how to create unreal engine plugins from scratch and sell them on Fab.com.