UBlueprintSetLibrary::Set_Length
#include "Kismet/BlueprintSetLibrary.h"
Access: public
Specifiers: staticBlueprintPureCustomThunk
Description
Returns the number of items currently stored in the set.
Caveats & Gotchas
- • Backs the Blueprint 'Length' node (searchable via the num/size/count keywords); in C++ call TSet::Num() directly instead of this wildcard wrapper.
- • O(1) — reads the set's cached element count rather than counting entries on each call.
Signature
static int32 Set_Length(const TSet<int32>& TargetSet); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| TargetSet | const TSet<int32>& | Wildcard placeholder for the set to get the length of. | — |
Return Type
int32 Example
Get element count C++
TSet<FName> UnlockedLevels = { TEXT("Level01"), TEXT("Level02") };
int32 Count = UnlockedLevels.Num(); // native TSet::Num — the direct equivalent of the Set_Length node Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?