RealDocs

UBlueprintMapLibrary::Map_Remove

function Engine Blueprint Since unknown
#include "Kismet/BlueprintMapLibrary.h"
Access: public Specifiers: staticBlueprintCallableCustomThunk

Description

Removes the entry for the given key from a map, if present, and reports whether anything was removed.

Caveats & Gotchas

  • Like Map_Add, the int32 types in this signature are wildcard placeholders resolved at runtime via CustomThunk — the declared signature does not reflect the actual key/value types used in a given Blueprint graph.
  • Returns false without error if the key wasn't present, so it's safe to call speculatively without checking Map_Contains first.

Signature

static bool Map_Remove(const TMap<int32, int32>& TargetMap, const int32& Key);

Parameters

Name Type Description Default
TargetMap const TMap<int32, int32>& The map to remove the key and its associated value from. Wildcard placeholder, mutated in place.
Key const int32& Wildcard key to remove.

Return Type

bool

Example

Remove an entry and check the result C++
TMap<FName, int32> Scores;
Scores.Add(TEXT("Player1"), 100);
const bool bRemoved = Scores.Remove(TEXT("Player1")) > 0; // native TMap::Remove — the direct C++ equivalent of the Map_Remove Blueprint node

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.