UEditorLevelUtils::K2_AddLevelToWorld

Adds the named level package to the world. Does nothing if the level already exists in the world.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h

Include

#include "EditorLevelUtils.h"

Syntax

static ULevelStreaming * K2_AddLevelToWorld
(
    UWorld * World,
    const FString & LevelPackageName,
    TSubclassOf< ULevelStreaming > LevelStreamingClass
)

Remarks

Adds the named level package to the world. Does nothing if the level already exists in the world.

Returns

The new level, or NULL if the level couldn't added.

Parameters

Parameter

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.

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