AActor::GetOverlappingActors

Syntax

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

Remarks

Returns list of actors this actor is overlapping (any component overlapping any component). Does not return itself.

Parameters

Parameter

Description

OverlappingActors

[out] Returned list of overlapping actors

ClassFilter

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

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/Actor.h

Source

Runtime/Engine/Private/Actor.cpp