AActor::GetOverlappingActors

Returns list of actors this actor is overlapping (any component overlapping any component).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/Actor.cpp

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

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