Navigation
API > API/Runtime > API/Runtime/Engine
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
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyEditorTransform
(
const ULevelStreaming* StreamingLevel, |
Apply the LevelEditorTransform on a level. | |
| void | ApplyLevelTransform
(
const FApplyLevelTransformParams& TransformParams |
Transforms the level to a new world space | |
| void | ApplyPostEditMove
(
ULevel* Level |
Calls PostEditMove on all the actors in the level | |
| ULevelStreaming * | FindStreamingLevel
(
UWorld* InWorld, |
Returns the streaming level by package name, or NULL if none exists. | |
| ULevelStreaming * | FindStreamingLevel
(
UWorld* InWorld, |
Returns the streaming level by package FName, or NULL if none exists. | |
| ULevelStreaming * | FindStreamingLevel
(
const ULevel* Level |
Returns the streaming level corresponding to the specified ULevel, or NULL if none exists. | |
| ULevelStreaming * | GetServerVisibleStreamingLevel
(
UWorld* InWorld, |
Returns the streaming level by package name if visible on server, or NULL if none exists. | |
| bool | |||
| bool | IsLevelLoaded
(
ULevel* Level |
Returns true if the level is currently loaded in the editor, false otherwise. | |
| bool | IsLevelLocked
(
AActor* Actor |
Returns true if the specified level is locked for edit, false otherwise. | |
| bool | IsLevelLocked
(
ULevel* Level |
Returns true if the specified level is locked for edit, false otherwise. | |
| bool | IsLevelVisible
(
const ULevel* Level |
Returns true if the specified level is visible in the editor, false otherwise. | |
| bool | Returns true if we are moving a level | ||
| bool | IsServerStreamingLevelVisible
(
UWorld* InWorld, |
Returns whether the given package is part of the world server visible streaming levels or not. | |
| bool | IsStreamingLevelVisibleInEditor
(
const ULevelStreaming* StreamingLevel |
Returns true if the specified level is visible in the editor, false otherwise. | |
| bool | IsValidStreamingLevel
(
UWorld* InWorld, |
Returns whether the given package is referenced by one of the world streaming levels or not. | |
| void | RemoveEditorTransform
(
const ULevelStreaming* StreamingLevel, |
Remove the LevelEditorTransform from a level. | |
| void | SetEditorTransform
(
ULevelStreaming* StreamingLevel, |
Sets a new LevelEditorTransform on a streaming level . | |
| bool | SupportsMakingInvisibleTransactionRequests
(
UWorld* InWorld |
Returns whether the world supports for a client to use "making invisible" transaction requests to the server. | |
| bool | SupportsMakingVisibleTransactionRequests
(
UWorld* InWorld |
Returns whether the world supports for a client to use "making visible" transaction requests to the server. | |
| void | ToggleLevelLock
(
ULevel* Level |
Sets a level's edit lock. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FApplyLevelTransformParams |
Constants
| Name | Description |
|---|---|
| bApplyingLevelTransform | |
| bMovingLevel | Flag to mark if we are currently finalizing a level offset. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyLevelTransform
(
ULevel* Level, |
Use version that takes params struct | |
| bool | IsLevelVisible
(
const ULevelStreaming* StreamingLevel |
Use IsStreamingLevelVisibleInEditor instead. |