/Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h
Executes an operation on the set of all referenced worlds.
static void ForEachWorlds ( [UWorld](API\Runtime\Engine\Engine\UWorld) * InWorld, [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< bool([UWorld](API\Runtime\Engine\Engine\UWorld) *)> Operation, bool bIncludeInWorld, bool bOnlyEditorVisible )