UEditorLevelLibrary::NewLevelFromTemplate

Close the current Persistent Level (without saving it).

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h

Include

#include "EditorLevelLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Level Utility")
static bool NewLevelFromTemplate
(
    const FString & AssetPath,
    const FString & TemplateAssetPath
)

Remarks

Close the current Persistent Level (without saving it). Create a new Level base on another level and save it. Load the new created level.

Returns

True if the operation succeeds.

Parameters

Parameter

Description

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss