Add

Adds an item to a Set.

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

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