Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLevelUtils
Description
Adds the named level packages to the world. Does nothing if all the levels already exist in the world.
| Name | AddLevelsToWorld |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h |
| Include Path | #include "EditorLevelUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorLevelUtils.cpp |
static ULevel * AddLevelsToWorld
(
UWorld * InWorld,
TArray < FString > LevelPackageNames,
TSubclassOf < ULevelStreaming > LevelStreamingClass
)
The new level, or NULL if the level couldn't added.
Parameters
| Name | Remarks |
|---|---|
| InWorld | World in which to add the level |
| LevelPackageName | The base filename of the level package to add. |
| LevelStreamingClass | The streaming class type instead to use for the level. |