Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLevelUtils
Description
Sets a level's visibility in the editor. More efficient than SetLevelsVisibility when changing the visibility of multiple levels simultaneously.
| Name | SetLevelsVisibility |
| 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 SetLevelsVisibility
(
const TArray < ULevel * > & Levels,
const TArray < bool > & bShouldBeVisible,
const bool bForceLayersVisible,
const ELevelVisibilityDirtyMode ModifyMode
)
Parameters
| Name | Remarks |
|---|---|
| Levels | The levels to modify. |
| bShouldBeVisible | The level's new visibility state for each level. |
| bForceLayersVisible | If true and the level is visible, force the level's layers to be visible. |
| ModifyMode | ELevelVisibilityDirtyMode mode value. |