Navigation
Unreal Engine C++ API Reference > Runtime > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/UnrealEngine.h |
Include | #include "UnrealEngine.h" |
Syntax
class FScopedConditionalWorldSwitcher
Remarks
When created, switches global context to a PIE world When destroyed, resets the GWorld back to what it was before
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FScopedConditionalWorldSwitcher
(
FViewportClient* InViewportClient |
Use the viewport to figure out what world to set temporarily | |
![]() |
FScopedConditionalWorldSwitcher
(
UWorld* InWorld |
Explicitly set to the specific world |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Resets back to initial world |
Constants
Name | Description |
---|---|
SwitchWorldForPIEDelegate | Delegate to call to switch worlds for PIE viewports. |