ULevelEditorSubsystem::SetCurrentLevelByName

Set the current level used by the world editor.

Choose your operating system:

Windows

macOS

Linux

References

Module

LevelEditor

Header

/Engine/Source/Editor/LevelEditor/Public/LevelEditorSubsystem.h

Include

#include "LevelEditorSubsystem.h"

Source

/Engine/Source/Editor/LevelEditor/Private/LevelEditorSubsystem.cpp

Syntax

bool SetCurrentLevelByName
(
    FName LevelName
)

Remarks

Set the current level used by the world editor. If more than one level shares the same name, the first one encounter of that level name will be used.

Returns

True if the operation succeeds.

Parameters

Parameter

Description

LevelName

The name of the Level the actor belongs to (same name as in the ContentBrowser).