RealDocs

UBlueprintMapLibrary::Map_Clear

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

Description

Clears a map of all entries, resetting it to empty.

Caveats & Gotchas

  • Mutates TargetMap in place — there is no separate output pin; the same map instance you pass in ends up empty after the call.
  • In C++, call TMap::Empty() directly instead of routing through this wildcard node.

Signature

static void Map_Clear(const TMap<int32, int32>& TargetMap);

Parameters

Name Type Description Default
TargetMap const TMap<int32, int32>& Wildcard placeholder for the map to clear. Mutated in place despite the const-ref parameter type.

Return Type

void

Example

Reset a map C++
TMap<FName, int32> Scores;
Scores.Add(TEXT("Player1"), 100);
Scores.Empty(); // native TMap::Empty — the direct equivalent of the Map_Clear 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.