RealDocs

UBlueprintSetLibrary::Set_IsEmpty

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

Description

Returns true if the set has zero elements.

Caveats & Gotchas

  • Equivalent to checking Set_Length() == 0; provided as a separate node purely for Blueprint graph readability.
  • In C++, call TSet::IsEmpty() directly instead of routing through this wildcard wrapper.

Signature

static bool Set_IsEmpty(const TSet<int32>& TargetSet);

Parameters

Name Type Description Default
TargetSet const TSet<int32>& Wildcard placeholder for the set to check.

Return Type

bool

Example

Guard against an empty set C++
TSet<FName> UnlockedLevels;
if (UnlockedLevels.IsEmpty()) // native TSet::IsEmpty — the direct equivalent of the Set_IsEmpty node
{
    UE_LOG(LogTemp, Warning, TEXT("No levels unlocked yet"));
}

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.