Union

Performs a union of two Sets, assigning the union to a resultant Set.

Windows
MacOS
Linux

Set_UnionNode.png

The Union node takes the union of items found in two Sets, assigning the union to a Resultant Set, with the result containing items found in both Set A and Set B. Visually, the intersection of Set A and Set B looks like the following diagram, where the intersection of Set A and Set B contains items that are common to both Sets.

Set_UnionDiagram.png

For illustrative purposes, let's say that you have two string type Sets, Set A and Set B, both of which are defined below.

Set A = {"Item 1", "Item 2", "Item 3", "Item 4", "Item 5"}
Set B = {"Item 4", "Item 5", "Item 6", "Item 7", "Item 8"}

The following table shows you the result, which contains the union of Set A and Set B (symbolically represented as A ∪ B).

Set A

Set B

Resultant Set (A ∪ B)

Item 1

Item 4

Item 1

Item 2

Item 5

Item 2

Item 3

Item 6

Item 3

Item 4

Item 7

Item 4

Item 5

Item 8

Item 5

Item 6

Item 7

Item 8

A Set is a collection of unique items, which means that duplicate items will be eliminated from the Resultant Set.

Inputs

Pin Location

Name

Description

Set_UnionNode_1.png

(In) Exec

Input execution pin.

Set_UnionNode_2.png

A

One Set to union.

Set_UnionNode_3.png

B

The other Set to union.

Outputs

Pin Location

Name

Description

Set_UnionNode_4.png

(Out) Exec

Output execution pin.

Set_UnionNode_5.png

Result

The Set containing the resultant union.

Example Usage

Set_UnionUsage.png

Footnote

Symbolically, this operation is represented as A ∪ B = { x | x ∈ A ∨ x ∈ B }, wherein this node is performing a logical OR operation between elements in Set A and elements in Set B.

Tags

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback