Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Layers > API/Editor/UnrealEd/Layers/ULayersSubsystem > API/Editor/UnrealEd/Layers/ULayersSubsystem/AddActorsToLayers
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Layers/LayersSubsystem.h |
| Include | #include "Layers/LayersSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Layers/LayersSubsystem.cpp |
virtual bool AddActorsToLayers
&40;
const TArray< TWeakObjectPtr< AActor > > & Actors,
const TArray< FName > & LayerNames
&41;
Remarks
Add the actors to the named layers true if at least one actor was added to at least one layer. false is returned if all the actors already belonged to all specified layers.
Parameters
| Name | Description |
|---|---|
| Actors | The actors to add to the named layers |
| LayerNames | A valid list of layer names. |