UKismetSystemLibrary::ComponentOverlapActors

Returns an array of actors that overlap the given component.

Windows
MacOS
Linux

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

Syntax

static bool ComponentOverlapActors
(
    UPrimitiveComponent * Component,
    const FTransform & ComponentTransform,
    const TArray < TEnumAsByte < EObjectTypeQuery > > & ObjectTypes,
    UClass * ActorClassFilter,
    const TArray < AActor * > & ActorsToIgnore,
    TArray < class AActor * > & OutActors
)

Remarks

Returns an array of actors that overlap the given component.

Returns

true if there was an overlap that passed the filters, false otherwise.

Parameters

Parameter

Description

Component

Component to test with.

ComponentTransform

Defines where to place the component for overlap testing.

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback