Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLevelUtils
Description
Sets a level's visibility in the editor. Less efficient than SetLevelsVisibility when changing the visibility of multiple levels simultaneously.
| Name | SetLevelVisibility |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h |
| Include Path | #include "EditorLevelUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorLevelUtils.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Level Utility")
static void SetLevelVisibility
(
ULevel * Level,
const bool bShouldBeVisible,
const bool bForceLayersVisible,
const ELevelVisibilityDirtyMode ModifyMode
)
Parameters
| Name | Remarks |
|---|---|
| Level | The level to modify. |
| bShouldBeVisible | The level's new visibility state. |
| bForceLayersVisible | If true and the level is visible, force the level's layers to be visible. |
| ModifyMode | ELevelVisibilityDirtyMode mode value. |