Navigation
API > API/Editor > API/Editor/LevelEditor > API/Editor/LevelEditor/ULevelEditorSubsystem
Description
Close the current Persistent Level (without saving it). Create a new Level base on another level and save it. Load the new created level.
| Name | NewLevelFromTemplate |
| Type | function |
| Header File | /Engine/Source/Editor/LevelEditor/Public/LevelEditorSubsystem.h |
| Include Path | #include "LevelEditorSubsystem.h" |
| Source | /Engine/Source/Editor/LevelEditor/Private/LevelEditorSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Level Utility")
bool NewLevelFromTemplate
(
const FString & AssetPath,
const FString & TemplateAssetPath
)
True if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| AssetPath | Asset Path of where the level will be saved. ie. /Game/MyFolder/MyAsset |
| TemplateAssetPath | Level to be used as Template. ie. /Game/MyFolder/MyAsset |