/Engine/Source/Editor/UnrealEd/Public/EditorLevelUtils.h
Assembles the set of all referenced worlds.
static void GetWorlds ( [UWorld](API\Runtime\Engine\Engine\UWorld) * InWorld, [TArray](API\Runtime\Core\Containers\TArray)< [UWorld](API\Runtime\Engine\Engine\UWorld) * > & OutWorlds, bool bIncludeInWorld, bool bOnlyEditorVisible )