UEditorLevelUtils::CreateNewStreamingLevelForWorld

Creates a new streaming level and adds it to a world

Windows
MacOS
Linux

References

Module

UnrealEd

Header

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

Include

#include "EditorLevelUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorLevelUtils.cpp

Syntax

static ULevelStreaming * CreateNewStreamingLevelForWorld
(
    UWorld & World,
    TSubclassOf< ULevelStreaming > LevelStreamingClass,
    const FString & DefaultFilename,
    bool bMoveSelectedActorsIntoNewLevel,
    UWorld * InTemplateWorld
)

Remarks

Creates a new streaming level and adds it to a world

Returns

Returns the newly created level, or NULL on failure

Parameters

Parameter

Description

InWorld

The world to add the streaming level to

LevelStreamingClass

The streaming class type instead to use for the level.

DefaultFilename

Optional file name for level. If empty, the user will be prompted during the save process.

bMoveSelectedActorsIntoNewLevel

If true, move any selected actors into the new level.

InTemplateWorld

If valid, the new level will be a copy of the template world.

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