Skip to content

Creating a Structure

Opening paragraphs.

Creating a Structure

To create a Structure, you'll need to select Add > Blueprint > Structure from the Content Browser.

Creating a Blueprint Structure

Structure Editor

The Structure Editor only allows you to declare variables, but not functions. Take the following example of a simple structure used to represent a geographical coordinate:

GeoPoint Structure

Structure variables support a few of the same settings that class variables do. See Variables to learn more about them.

In Blueprint Scripting

Just like any other data type, you can declare variables of your Structure in your Blueprints and pass them around as arguments to functions.

Break

An output pin that represents a structure can be split and broken into its individual components. This is applicable to a simple Get node or a function call that outputs a structure:

There is also an explicit Break node associated with each structure that you can add and use in your Blueprints:

Break GeoPoint

Make

Vice versa, input pins that expect a structure can be split to make a new structure from individual properties, in both Set nodes and function calls:

There is also an explicit Make node associated with each structure that you can add and use in your Blueprints:

Make GeoPoint