/Engine/Source/Runtime/Engine/Public/UnrealEngine.h
Use the viewport to figure out what world to set temporarily
FScopedConditionalWorldSwitcher ( class [FViewportClient](API\Runtime\Engine\FViewportClient) * InViewportClient )