Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLevelUtils
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h |
| Include | #include "EditorLevelUtils.h" |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Level Creation",
Meta=(DisplayName="Remove Level From World", ScriptName="RemoveLevelFromWorld"))
static bool K2_RemoveLevelFromWorld
(
ULevel * InLevel,
bool bClearSelection,
bool bResetTransactionBuffer
)
Remarks
Removes given level from the world. Note, this will only work for sub-levels in the main level. True if the level was successfully removed.
Parameters
| Name | Description |
|---|---|
| InLevel | Level asset to remove from the world. |
| bClearSelection | If true, it will clear the editor selection. |
| bResetTransactionBuffer | If true, it will reset the transaction buffer (i.e. clear undo history) |