/Engine/Source/Editor/UnrealEd/Public/Layers/LayersSubsystem.h
Gets all the actors associated with ANY of the specified layers. Analog to AppendActorsFromLayers but it returns rather than appends the actors.
The list to assign the found actors to.
[TArray](API\Runtime\Core\Containers\TArray)< [AActor](API\Runtime\Engine\GameFramework\AActor) * > GetActorsFromLayers ( const [TArray](API\Runtime\Core\Containers\TArray)< [FName](API\Runtime\Core\UObject\FName) > & LayerNames ) const