Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlueprintMapLibrary
Description
Adds a key and value to the map. If something already uses the provided key it will be overwritten with the new value. After calling Key is guaranteed to be associated with Value until a subsequent mutation of the Map.
| Name | Map_Add |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintMapLibrary.h |
| Include Path | #include "Kismet/BlueprintMapLibrary.h" |
UFUNCTION (BlueprintCallable, CustomThunk,
Meta=(DisplayName="Add", CompactNodeTitle="ADD", MapParam="TargetMap", MapKeyParam="Key", MapValueParam="Value", AutoCreateRefTerm="Key, Value"),
Category="Utilities|Map")
static void Map_Add
(
const TMap < int32, int32 > & TargetMap,
const int32 & Key,
const int32 & Value
)
Parameters
| Name | Remarks |
|---|---|
| TargetMap | The map to add the key and value to |
| Key | The key that will be used to look the value up |
| Value | The value to be retrieved later |