ULayersSubsystem::AddActorToLayer

Adds the actor to the named layer.

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 AddActorToLayer
(
    AActor * Actor,
    const FName & LayerName
)

Remarks

Adds the actor to the named layer.

Returns

true if the actor was added. false is returned if the actor already belongs to the layer.

Parameters

Parameter

Description

Actor

The actor to add to the named layer

LayerName

The name of the layer to add the actor to

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