UEditorLevelLibrary::SetCurrentLevelByName

Set the current level used by the world editor.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h

Include

#include "EditorLevelLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Level Utility")
static 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).

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