Remove

Removes a key-value pair from a Map.

Windows
MacOS
Linux

Map_RemoveNode.png

The Remove node removes a key-value pair from a Map, thereby decreasing the length of the Map. When removing a key-value pair from a Map, the node checks whether the key is in the Map. If the key isn't in the Map, the key-value pair won't be removed.

Inputs

Pin Location

Name

Description

Map_RemoveNode_1.png

(In) Exec

Input execution pin.

Map_RemoveNode_2.png

Target Map

The Map that you want to remove the key-value pair from.

Map_RemoveNode_3.png

Key

The key being used to lookup a value in the Map.

Before a key-value pair can be removed, the key must be contained in the Map.

Outputs

Pin Location

Name

Description

Map_RemoveNode_4.png

(Out) Exec

Output execution pin.

Map_RemoveNode_5.png

Boolean Return Value

If the key-value pair was removed, the node returns true. Otherwise, if there are no values in the Map using the provided key, the node returns false.

Example Usage

Map_RemoveUsage.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