Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLevelUtils
Description
Removes given level from the world. Note, this will only work for sub-levels in the main level.
Levels are not saved when added to the world. They can be saved with the "Save Map" function
| Name | K2_RemoveLevelFromWorld |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h |
| Include Path | #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
)
True if the level was successfully removed.
Parameters
| Name | Remarks |
|---|---|
| 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) |