Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlueprintMapLibrary
Description
Given a map and an index, returns a copy of the key and value found at that index. Index may differ from the order in which they were added. This function is implemented for the purpose of iterating maps by index.
| Name | Map_GetKeyValueByIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintMapLibrary.h |
| Include Path | #include "Kismet/BlueprintMapLibrary.h" |
UFUNCTION (BlueprintPure, CustomThunk,
Meta=(DisplayName="Get Key Value By Index", CompactNodeTitle="GET KEY VALUE BY INDEX", MapParam="TargetMap", MapKeyParam="Key", MapValueParam="Value", AutoCreateRefTerm="Key, Value", BlueprintThreadSafe),
Category="Utilities|Map")
static void Map_GetKeyValueByIndex
(
const TMap < int32, int32 > & TargetMap,
int32 Index,
int32 & Key,
int32 & Value
)
Parameters
| Name | Remarks |
|---|---|
| TargetMap | The map to get a key & value from |
| Index | The index in the map to get the key & value |
| Key | A copy of the key stored in the map at the index |
| Value | A copy of the value stored in the map at the index |