Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLevelUtils
Description
Adds the named level package to the world at the given position. Does nothing if the level already exists in the world.
| Name | K2_AddLevelToWorldWithTransform |
| 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="Add Level to World with Transform", ScriptName="AddLevelToWorldWithTransform"))
static ULevelStreaming * K2_AddLevelToWorldWithTransform
(
UWorld * World,
const FString & LevelPackageName,
TSubclassOf < ULevelStreaming > LevelStreamingClass,
const FTransform & LevelTransform
)
The new level, or NULL if the level couldn't added.
Parameters
| Name | Remarks |
|---|---|
| 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. |
| LevelTransform | The origin of the new level in the world. |