UKismetArrayLibrary::Array_Length
#include "Kismet/KismetArrayLibrary.h"
Access: public
Specifiers: staticBlueprintPureCustomThunk
Description
Returns the number of elements in an array.
Caveats & Gotchas
- • Registered under the Blueprint keywords 'num size count', so any of those terms find the 'Length' node in the palette.
- • Marked BlueprintThreadSafe, so it can safely be called from async Blueprint contexts alongside other pure array queries.
- • In C++ this is just TargetArray.Num() — Array_Length exists only to back the Blueprint pure node.
Signature
static int32 Array_Length(const TArray<int32>& TargetArray); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| TargetArray | const TArray<int32>& | The array to measure. | — |
Return Type
int32 Example
Check array length C++
TArray<int32> Values = { 1, 2, 3 };
const int32 Count = UKismetArrayLibrary::Array_Length(Values);
// Count == 3 Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?