FLevelUtils

A set of static methods for common editor operations that operate on [ULevel](API\Runtime\Engine\Engine\ULevel) objects.

Windows
MacOS
Linux

Syntax

class FLevelUtils

Remarks

A set of static methods for common editor operations that operate on ULevel objects.

Functions

Name Description

Public function Static

void

 

ApplyEditorTransform

(
    const ULevelStreaming* Streami...,
    bool bDoPostEditMove
)

Apply the LevelEditorTransform on a level.

Public function Static

void

 

ApplyLevelTransform

(
    ULevel* Level,
    const FTransform& LevelTransform,
    bool bDoPostEditMove
)

Transforms the level to a new world space

Public function Static

void

 

ApplyPostEditMove

(
    ULevel* Level
)

Calls PostEditMove on all the actors in the level

Public function Static

ULevelStream...

 

FindStreamingLevel

(
    UWorld* InWorld,
    const TCHAR* PackageName
)

Returns the streaming level by package name, or NULL if none exists.

Public function Static

ULevelStream...

 

FindStreamingLevel

(
    const ULevel* Level
)

Returns the streaming level corresponding to the specified ULevel, or NULL if none exists.

Public function Static

bool

 

IsLevelLoaded

(
    ULevel* Level
)

Returns true if the level is currently loaded in the editor, false otherwise.

Public function Static

bool

 

IsLevelLocked

(
    AActor* Actor
)

Returns true if the specified level is locked for edit, false otherwise.

Public function Static

bool

 

IsLevelLocked

(
    ULevel* Level
)

Returns true if the specified level is locked for edit, false otherwise.

Public function Static

bool

 

IsLevelVisible

(
    const ULevel* Level
)

Returns true if the specified level is visible in the editor, false otherwise.

Public function Static

bool

 

IsMovingLevel()

Returns true if we are moving a level

Public function Static

bool

 

IsStreamingLevelVisibleInEditor

(
    const ULevelStreaming* Streami...
)

Returns true if the specified level is visible in the editor, false otherwise.

Public function Static

void

 

MarkLevelForLoading

(
    ULevel* Level
)

Flags an unloaded level for loading.

Public function Static

void

 

MarkLevelForUnloading

(
    ULevel* Level
)

Flags a loaded level for unloading.

Public function Static

void

 

RemoveEditorTransform

(
    const ULevelStreaming* Streami...,
    bool bDoPostEditMove
)

Remove the LevelEditorTransform from a level.

Public function Static

void

 

SetEditorTransform

(
    ULevelStreaming* StreamingLeve...,
    const FTransform& Transform,
    bool bDoPostEditMove
)

Sets a new LevelEditorTransform on a streaming level .

Public function Static

void

 

ToggleLevelLock

(
    ULevel* Level
)

Sets a level's edit lock.

Constants

Name

Description

bMovingLevel

Flag to mark if we are currently finalizing a level offset.

Deprecated Functions

Name Description

Public function Static

bool

 

IsLevelVisible

(
    const ULevelStreaming* Streami...
)

Use IsStreamingLevelVisibleInEditor instead.

References

Module

Engine

Header

Runtime/Engine/Public/LevelUtils.h

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