Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UKismetArrayLibrary
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetArrayLibrary.h |
Include | #include "Kismet/KismetArrayLibrary.h" |
Source | /Engine/Source/Runtime/Engine/Private/KismetArrayLibrary.cpp |
UFUNCTION (BlueprintCallable,
Meta=(DisplayName="Filter Array", DeterminesOutputType="FilterClass", DynamicOutputParam="FilteredArray"),
Category="Utilities|Array")
static void FilterArray
(
const TArray < AActor * > & TargetArray,
TSubclassOf < class AActor > FilterClass,
TArray < AActor * > & FilteredArray
)
Remarks
Filter an array based on a Class derived from Actor. An array containing only those objects which are derived from the class specified.
Parameters
Name | Description |
---|---|
TargetArray | The array to filter from |
FilterClass | The Actor sub-class type that acts as the filter, only objects derived from it will be returned. |