UDataLayerEditorSubsystem::GetActorsFromDataLayer

Gets all the actors associated with the specified DataLayer.

Unreal Engine C++ API Reference > Editor > DataLayerEditor > DataLayer > UDataLayerEditorSubsystem > GetActorsFromDataLayer

References

   
Module DataLayerEditor
Header /Engine/Source/Editor/DataLayerEditor/Public/DataLayer/DataLayerEditorSubsystem.h
Include #include "DataLayer/DataLayerEditorSubsystem.h"
Source /Engine/Source/Editor/DataLayerEditor/Private/DataLayer/DataLayerEditorSubsystem.cpp
[TArray](API\Runtime\Core\Containers\TArray)< [AActor](API\Runtime\Engine\GameFramework\AActor) * > GetActorsFromDataLayer
(
    [UDataLayerInstance](API\Runtime\Engine\WorldPartition\DataLayer\UDataLayerInstance) * DataLayer,
    const [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FActorFilter](API\Editor\DataLayerEditor\DataLayer\UDataLayerEditorSubsystem\FActorFilter) > & Filter
) const

Remarks

Gets all the actors associated with the specified DataLayer. Analog to AppendActorsFromDataLayer but it returns rather than appends the actors. The list to assign the found actors to.

Parameters

Name Description
DataLayer The DataLayer to find actors for.
Filter [optional] Actor that don't pass the specified filter restrictions won't be selected.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library