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="Add Level to World", ScriptName="AddLevelToWorld"))
static ULevelStreaming * K2_AddLevelToWorld
(
UWorld * World,
const FString & LevelPackageName,
UPARAM) TSubclassOf < ULevelStreaming > LevelStreamingClass
)
Remarks
Adds the named level package to the world. Does nothing if the level already exists in the world.
Levels are not saved when added to the world. They can be saved with the "Save Map" function The new level, or NULL if the level couldn't added.
Parameters
| Name | Description |
|---|---|
| InWorld | World in which to add the level. |
| LevelPackageName | The package name ("e.g /Game/MyLevel") of the level package to add. |
| LevelStreamingClass | The streaming class type to use for the level. |