Navigation
API > API/Editor > API/Editor/LevelEditor > API/Editor/LevelEditor/ULevelEditorSubsystem
References
| Module | LevelEditor |
| Header | /Engine/Source/Editor/LevelEditor/Public/LevelEditorSubsystem.h |
| Include | #include "LevelEditorSubsystem.h" |
| Source | /Engine/Source/Editor/LevelEditor/Private/LevelEditorSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Level Utility")
bool NewLevel
(
const FString & AssetPath,
bool bIsPartitionedWorld
)
Remarks
Close the current Persistent Level (without saving it). Create a new blank Level and save it. Load the new created level. Editor Scripting | Level True if the operation succeeds.
Parameters
| Name | Description |
|---|---|
| AssetPath | Asset Path of where the level will be saved. ie. /Game/MyFolder/MyAsset |
| bIsPartitionedWorld | If true, new map is partitioned. |