RealDocs

UKismetArrayLibrary::Array_IsEmpty

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

Description

Returns true if the array has no elements.

Caveats & Gotchas

  • Marked BlueprintThreadSafe, so it's safe to call from async Blueprint contexts.
  • Equivalent to checking Array_Length(TargetArray) == 0, but reads more clearly as a branch condition.

Signature

static bool Array_IsEmpty(const TArray<int32>& TargetArray);

Parameters

Name Type Description Default
TargetArray const TArray<int32>& The array to check.

Return Type

bool

Example

Guard against empty arrays C++
TArray<int32> Values;
if (UKismetArrayLibrary::Array_IsEmpty(Values))
{
    // Skip processing — nothing to do
}

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.