RealDocs

UBlueprintMapLibrary::Map_Values

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

Description

Outputs an array containing a copy of every value in the map, in the same order as the corresponding Map_Keys call.

Caveats & Gotchas

  • The output array is a snapshot — mutating the map afterwards does not update the Values array you already retrieved.
  • There is no built-in way to pair a given Values entry back to its key from this node alone; use Map_GetKeyValueByIndex if you need key and value together.

Signature

static void Map_Values(const TMap<int32, int32>& TargetMap, TArray<int32>& Values);

Parameters

Name Type Description Default
TargetMap const TMap<int32, int32>& Wildcard placeholder for the map to read values from.
Values TArray<int32>& Output array populated with a copy of every value currently in the map.

Return Type

void

Example

Collect all values C++
TMap<FName, int32> Scores;
Scores.Add(TEXT("Player1"), 100);
Scores.Add(TEXT("Player2"), 75);

TArray<int32> AllValues;
for (const auto& Pair : Scores) // native iteration — the direct equivalent of the Map_Values node
{
    AllValues.Add(Pair.Value);
}

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.