UBlueprintMapLibrary::Map_IsEmpty
#include "Kismet/BlueprintMapLibrary.h"
Access: public
Specifiers: staticBlueprintPureCustomThunk
Description
Returns true if the map has zero entries.
Caveats & Gotchas
- • Equivalent to checking Map_Length() == 0; provided as a separate node purely for Blueprint graph readability.
- • In C++, call TMap::IsEmpty() directly instead of routing through this wildcard wrapper.
Signature
static bool Map_IsEmpty(const TMap<int32, int32>& TargetMap); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| TargetMap | const TMap<int32, int32>& | Wildcard placeholder for the map to check. | — |
Return Type
bool Example
Guard against an empty map C++
TMap<FName, int32> Scores;
if (Scores.IsEmpty()) // native TMap::IsEmpty — the direct equivalent of the Map_IsEmpty node
{
UE_LOG(LogTemp, Warning, TEXT("No scores recorded yet"));
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?