FLevelUtils

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

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/LevelUtils.h

Include

#include "LevelUtils.h"

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,
    AActor* Actor
)

Apply the LevelEditorTransform on a level.

Public function Static

void

 

ApplyLevelTransform

(
    const FApplyLevelTransformParams& ...
)

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

 

IsApplyingLevelTransform()

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

 

RemoveEditorTransform

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

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.

Classes

Name

Description

Public struct

FApplyLevelTransformParams

Constants

Name

Description

bApplyingLevelTransform

bMovingLevel

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

Deprecated Functions

Name Description

Public function Static

void

 

ApplyLevelTransform

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

Use version that takes params struct

Public function Static

bool

 

IsLevelVisible

(
    const ULevelStreaming* Streami...
)

Use IsStreamingLevelVisibleInEditor 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