Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UKismetSystemLibrary
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h |
| Include | #include "Kismet/KismetSystemLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Collision",
Meta=(WorldContext="WorldContextObject", AutoCreateRefTerm="ActorsToIgnore", DisplayName="Sphere Overlap Components"))
static bool SphereOverlapComponents
(
const UObject * WorldContextObject,
const FVector SpherePos,
float SphereRadius,
const TArray < TEnumAsByte < EObjectTypeQuery > > & ObjectTypes,
UClass * ComponentClassFilter,
const TArray < AActor * > & ActorsToIgnore,
TArray < class UPrimitiveComponent * > & OutComponents
)
Remarks
Returns an array of components that overlap the given sphere. true if there was an overlap that passed the filters, false otherwise.
Parameters
| Name | Description |
|---|---|
| WorldContext | World context |
| SpherePos | Center of sphere. |
| SphereRadius | Size of sphere. |
| Filter | Option to restrict results to only static or only dynamic. For efficiency. |
| ClassFilter | If set, will only return results of this class or subclasses of it. |
| ActorsToIgnore | Ignore these actors in the list |
| OutActors | Returned array of actors. Unsorted. |