UEditorLevelUtils::ForEachWorlds

Executes an operation on the set of all referenced worlds.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h

Include

#include "EditorLevelUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorLevelUtils.cpp

Syntax

static void ForEachWorlds
(
    UWorld * InWorld,
    TFunctionRef< bool *)> Operation,
    bool bIncludeInWorld,
    bool bOnlyEditorVisible
)

Remarks

Executes an operation on the set of all referenced worlds.

Parameters

Parameter

Description

InWorld

World containing streaming levels

Operation

The operation to execute on the referenced worlds, return false to break iteration

bIncludeInWorld

If true, include the InWorld in the output list.

bOnlyEditorVisible

If true, only sub-levels that should be visible in-editor are included

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss