/Engine/Source/Editor/UnrealEd/Public/Layers/LayersSubsystem.h
Gets all the actors associated with the specified layer. Analog to AppendActorsFromLayer 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) * > GetActorsFromLayer ( const [FName](API\Runtime\Core\UObject\FName) & LayerName ) const