UBlueprintSetLibrary::Set_Clear
#include "Kismet/BlueprintSetLibrary.h"
Access: public
Specifiers: staticBlueprintCallableCustomThunk
Description
Clears a set of all elements, resetting it to empty.
Caveats & Gotchas
- • Mutates TargetSet in place — there is no separate output pin; the same set instance you pass in ends up empty after the call.
- • In C++, call TSet::Empty() directly instead of routing through this wildcard node.
Signature
static void Set_Clear(const TSet<int32>& TargetSet); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| TargetSet | const TSet<int32>& | Wildcard placeholder for the set to clear. Mutated in place despite the const-ref parameter type. | — |
Return Type
void Example
Reset a set C++
TSet<FName> UnlockedLevels = { TEXT("Level01") };
UnlockedLevels.Empty(); // native TSet::Empty — the direct equivalent of the Set_Clear node See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?