With the release of Unreal Engine, version 4.15, the Set container type has been added to the Blueprint Application Programming Interface (API) in Unreal Engine 4 (UE4).
If you're unfamiliar with the term "container"; think of a storage box, where you label items and place them inside of the box for immediate (or later) use. If you've used Arrays to store and work with collections of items, you've
already started using Blueprint containers in UE4. For example, when using Arrays to store items for later use, the item's label is its place in the array; however, when using Sets, the label is the item itself. This makes Sets a
powerful addition to the Blueprint API.
Blueprint Sets are an exciting addition to the Blueprint API because they support efficient lookups and retrieval with keys, where a key is an item itself. The Set's
characteristic, where an item's key is the item itself, means that Sets enable developers to efficiently add, find, and remove items located in the container.
Depending on your game, Sets can be used to ignore commonly used words in dialogue, or they can be used to store unique inventory items. Clearly, there are
many potential use cases when working with Sets; however, before you can harness the power of Sets in your game, you'll need to learn how to properly use them in UE4.
As you read through this page, you'll learn how to create and edit Blueprint Sets. You'll also learn about the properties of Blueprint Sets, which are being included to help you get the most out of using
Sets in your game projects.
For illustrative purposes, we're using a Blank Blueprint Project (with highlighted settings) to show you how to create and edit Blueprint Sets.