UBlueprintMapLibrary::Map_Add

Adds a key and value to the map.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintMapLibrary.h

Include

#include "Kismet/BlueprintMapLibrary.h"

Syntax

static void Map_Add
(
    const TMap< int32, int32 > & TargetMap,
    const int32 & Key,
    const int32 & Value
)

Remarks

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.

Parameters

Parameter

Description

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss