UDataLayerEditorSubsystem::RemoveActorsFromDataLayer

Removes the actors from the specified 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 RemoveActorsFromDataLayer
(
    const [TArray](API\Runtime\Core\Containers\TArray)< [AActor](API\Runtime\Engine\GameFramework\AActor) * > & Actors,
    [UDataLayerInstance](API\Runtime\Engine\WorldPartition\DataLayer\UDataLayerInstance) * DataLayer
)

Remarks

Removes the actors from the specified DataLayer. true if at least one actor was removed from the DataLayer. false is returned if all the actors already belonged to the DataLayer.

Parameters

Name Description
Actors The actors to remove from the provided DataLayer
DataLayerToRemove The DataLayer to remove the actors from

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library