Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLevelUtils > API/Editor/UnrealEd/UEditorLevelUtils/MakeLevelCurrent
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h |
| Include | #include "EditorLevelUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorLevelUtils.cpp |
static void MakeLevelCurrent
&40;
ULevel &42; InLevel,
bool bEvenIfLocked
&41;
Remarks
Makes the specified level the current level for editing. The current level is where actors are spawned to when calling SpawnActor true If a level was removed.
Parameters
| Name | 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) |