/Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h
Sets a level's visibility in the editor. More efficient than SetLevelsVisibility when changing the visibility of multiple levels simultaneously.
static void SetLevelsVisibility ( const [TArray](API\Runtime\Core\Containers\TArray)< [ULevel](API\Runtime\Engine\Engine\ULevel) * > & Levels, const [TArray](API\Runtime\Core\Containers\TArray)< bool > & bShouldBeVisible, const bool bForceLayersVisible, const ELevelVisibilityDirtyMode ModifyMode )