UPrimitiveComponent::GetOverlappingActors

Returns a list of actors that this component is overlapping.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h

Include

#include "Components/PrimitiveComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/PrimitiveComponent.cpp

Syntax

void GetOverlappingActors
(
    TArray< AActor * > & OverlappingActors,
    TSubclassOf< AActor > ClassFilter
) const

Remarks

Returns a list of actors that this component is overlapping.

Parameters

Parameter

Description

OverlappingActors

[out] Returned list of overlapping actors

ClassFilter

[optional] If set, only returns actors of this class or subclasses

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss