UEditorLevelUtils

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

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

Include

#include "EditorLevelUtils.h"

Syntax

class UEditorLevelUtils : public UObject

Functions

Name Description

Public function Static

ULevel *

 

AddLevelsToWorld

(
    UWorld* InWorld,
    TArray< FString > LevelPackageNames,
    TSubclassOf< ULevelStreaming > Leve...
)

Adds the named level packages to the world.

Public function Static

ULevelStream...

 

AddLevelToWorld

(
    UWorld* InWorld,
    const TCHAR* LevelPackageName,
    TSubclassOf< ULevelStreaming > Leve...,
    const FTransform& LevelTransform
)

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

Public function Static

ULevelStream...

 

CreateNewStreamingLevel

(
    TSubclassOf< ULevelStreaming > Leve...,
    const FString& NewLevelPath,
    bool bMoveSelectedActorsIntoNewLeve...
)

Creates a new streaming level in the current world

Public function Static

ULevelStream...

 

CreateNewStreamingLevelForWorld

(
    UWorld& World,
    TSubclassOf< ULevelStreaming > Leve...,
    const FString& DefaultFilename,
    bool bMoveSelectedActorsIntoNewLeve...,
    UWorld* InTemplateWorld
)

Creates a new streaming level and adds it to a world

Public function Static

void

 

DeselectAllSurfacesInLevel

(
    ULevel* InLevel
)

Deselects all BSP surfaces in this level

Public function Static

void

 

GetWorlds

(
    UWorld* InWorld,
    TArray< UWorld* >& OutWorlds,
    bool bIncludeInWorld,
    bool bOnlyEditorVisible
)

Assembles the set of all referenced worlds.

Public function Static

void

 

MakeLevelCurrent

(
    ULevel* InLevel,
    bool bEvenIfLocked
)

Makes the specified level the current level for editing.

Public function Static

void

 

MakeLevelCurrent

(
    ULevelStreaming* InStreamingLe...
)

Makes the specified streaming level the current level for editing.

Public function Static

int32

 

MoveActorsToLevel

(
    const TArray< AActor* >& Acto...,
    ULevel* DestLevel,
    bool bWarnAboutReferences
)

Public function Static

int32

 

MoveActorsToLevel

(
    const TArray< AActor* >& Acto...,
    ULevelStreaming* DestStreaming...,
    bool bWarnAboutReferences
)

Moves the specified list of actors to the specified streaming level.

Public function Static

int32

 

MoveSelectedActorsToLevel

(
    ULevel* DestLevel,
    bool bWarnAboutReferences
)

Public function Static

int32

 

MoveSelectedActorsToLevel

(
    ULevelStreaming* DestLevel,
    bool bWarnAboutReferences
)

Moves the currently selected actors to the specified streaming level.

Public function Static

bool

 

RemoveInvalidLevelFromWorld

(
    ULevelStreaming* InLevelStream...
)

Removes the specified LevelStreaming from the world, and Refreshes.

Public function Static

bool

 

RemoveLevelFromWorld

(
    ULevel* InLevel
)

Removes the specified level from the world. Refreshes.

Public function Static

void

 

SetLevelVisibility

(
    ULevel* Level,
    bool bShouldBeVisible,
    bool bForceLayersVisible,
    ELevelVisibilityDirtyMode ModifyMod...
)

Sets a level's visibility in the editor.

Public function Static

void

 

SetLevelVisibilityTemporarily

(
    ULevel* Level,
    bool bShouldBeVisible
)

Sets the actors within a level's visibility via bHiddenEdLevel.

Public function Static

ULevelStream...

 

SetStreamingClassForLevel

(
    ULevelStreaming* InLevel,
    TSubclassOf< ULevelStreaming > Leve...
)

Sets the LevelStreamingClass for the specified Level

Deprecated Functions

Name Description

Public function Static

ULevel *

 

CreateNewLevel

(
    UWorld* InWorld,
    bool bMoveSelectedActorsIntoNewLeve...,
    TSubclassOf< ULevelStreaming > Leve...,
    const FString& DefaultFilename
)

The CreateNewLevel method to create streaming levels has been deprecated. Use CreateNewStreamingLevelForWorld instead

Public function Static

void

 

MovesActorsToLevel

(
    TArray< AActor* >& ActorsToMo...,
    ULevelStreaming* DestLevelStre...,
    int32& OutNumMovedActors
)

The MovesActorsToLevel method has been deprecated. Use MoveActorsToLevel instead

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback