ULayersSubsystem::TryGetLayer

Attempts to get the [ULayer](API\Runtime\Engine\Layers\ULayer) Object of the provided layer name.

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 TryGetLayer
(
    const FName & LayerName,
    ULayer *& OutLayer
)

Remarks

Attempts to get the ULayer Object of the provided layer name.

Returns

If true a valid ULayer Object was found and set to OutLayer; if false, a valid ULayer object was not found and invalid set to OutLayer

Parameters

Parameter

Description

LayerName

The name of the layer whose ULayer Object to retrieve

OutLayer[OUT]

Set to the ULayer Object of the named layer. Set to Invalid if no ULayer Object exists.

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