/Engine/Source/Runtime/Engine/Public/UnrealEngine.h
When created, switches global context to a PIE world When destroyed, resets the GWorld back to what it was before
class FScopedConditionalWorldSwitcher