Arrays

An array is a type of container 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 sequential index in the container.

To create an array, first create a variable and define its type. Then, click the icon next to the Variable Type drop-down menu and select the icon of an array, as shown in this screenshot:

Compile the Blueprint to be able to add the default values of the array. In the Default Value panel of the variable, ...

Get Blueprints Visual Scripting for Unreal Engine - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.