Add

Adds an item to a Set.

Choose your operating system:

Windows

macOS

Linux

Set_AddNode.png

The Add node adds an item to a Set, thereby increasing the length of the Set. When adding an item to a Set, the node checks whether the added item is equal to an existing item in the Set. If the new item is equal to an item that's already in the Set, the new item won't be added.

Inputs

Pin Location

Name

Description

Set_AddNode_1.png

(In) Exec

Input execution pin.

Set_AddNode_2.png

Target Set

The Set that you want to add a new item to.

Set_AddNode_3.png

New Item

The item that you want to add to the Set.

The new item needs to be unique from existing items that are contained in the Set.

Outputs

Pin Location

Name

Description

Set_AddNode_4.png

(Out) Exec

Output execution pin.

Set_AddNode_5.png

Boolean Return Value

If an equivalent item was present, the node returns false. Otherwise, if the new item was successfully added to the Set, this node returns true.

Example Usage

Set_AddUsage.png

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss