UDataLayerEditorSubsystem::AddActorsToDataLayer

Add the actors to the DataLayer

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

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
bool AddActorsToDataLayer
(
    const [TArray](API\Runtime\Core\Containers\TArray)< [AActor](API\Runtime\Engine\GameFramework\AActor) * > & Actors,
    [UDataLayerInstance](API\Runtime\Engine\WorldPartition\DataLayer\UDataLayerInstance) * DataLayer
)

Remarks

Add the actors to the DataLayer true if at least one actor was added to the DataLayer. false is returned if all the actors already belonged to the DataLayer.

Parameters

Name Description
Actors The actors to add to the DataLayer
DataLayer The DataLayer to add to

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library