UDataLayerEditorSubsystem::GetActorsFromDataLayers

Gets all the actors associated with ANY of the specified DataLayers.

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

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) * > GetActorsFromDataLayers
(
    const [TArray](API\Runtime\Core\Containers\TArray)< [UDataLayerInstance](API\Runtime\Engine\WorldPartition\DataLayer\UDataLayerInstance) * > & DataLayers
) const

Remarks

Gets all the actors associated with ANY of the specified DataLayers. Analog to AppendActorsFromDataLayers but it returns rather than appends the actors. The list to assign the found actors to.

Parameters

Name Description
DataLayers The DataLayers to find actors for.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library