ULayersSubsystem::AddActorsToLayers

Add the actors to the named layers

Windows
MacOS
Linux

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

Syntax

virtual bool AddActorsToLayers
(
    const TArray< TWeakObjectPtr< AActor > > & Actors,
    const TArray< FName > & LayerNames
)

Remarks

Add the actors to the named layers

Returns

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

Parameter

Description

Actors

The actors to add to the named layers

LayerNames

A valid list of layer names.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss