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,
    bool bWarnAboutRenaming
)

Public function Static

int32

 

MoveActorsToLevel

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

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

 

SetLevelsVisibility

(
    const TArray< ULevel* >& Leve...,
    const TArray< bool >& bShouldBeVis...,
    const bool bForceLayersVisible,
    const ELevelVisibilityDirtyMode Mod...
)

Sets a level's visibility in the editor.

Public function Static

void

 

SetLevelVisibility

(
    ULevel* Level,
    const bool bShouldBeVisible,
    const bool bForceLayersVisible,
    const ELevelVisibilityDirtyMode Mod...
)

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

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