UEditorLevelUtils::MakeLevelCurrent

Makes the specified level the current level for editing.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h

Include

#include "EditorLevelUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorLevelUtils.cpp

Syntax

static void MakeLevelCurrent
(
    ULevel * InLevel,
    bool bEvenIfLocked
)

Remarks

Makes the specified level the current level for editing. The current level is where actors are spawned to when calling SpawnActor

Returns

true If a level was removed.

Parameters

Parameter

Description

InLevel

The level to make current

bForceOperation

True if the operation should succeed even if the level is locked. In certian circumstances (like removing the current level, we must be able to set a new current level even if the only one left is locked)

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