
Blueprints Visual Scripting for Unreal Engine 5
By :

A container is a type of data structure whose instances can store collections of values or instances. The values in a container must be of the same type. An element of a container can be retrieved later by using a label that the element is associated with.
The containers available in Blueprints are arrays, sets, and maps. To turn a variable into a container, click the icon next to Variable Type and choose one of the containers that appear, as shown in the following screenshot:
Figure 13.1 – Creating a container
We will start by learning about the most used container type – an array.
An array is a container type that stores one or more values of a specific data type. Thus, a single variable can be used to store multiple values instead of using separate variables for each value.
Arrays provide indexed access to their elements, so the label used to retrieve an element is the element's...