Navigation
API > API/Runtime > API/Runtime/SlateCore
Hack to switch worlds in a scope and switch back when we fall out of scope
| Name | FScopedSwitchWorldHack |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h |
| Include Path | #include "Widgets/SWindow.h" |
Syntax
struct FScopedSwitchWorldHack
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FScopedSwitchWorldHack
(
const FWidgetPath& WidgetPath |
Widgets/SWindow.h | ||
FScopedSwitchWorldHack
(
TSharedPtr< SWindow > InWindow |
Widgets/SWindow.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FScopedSwitchWorldHack() |
Widgets/SWindow.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Window | TSharedPtr< SWindow > | The window to switch worlds for. | Widgets/SWindow.h | |
| WorldId | int32 | The worldID serves as identification to the user about the world. It can be anything although -1 is assumed to be always invalid. | Widgets/SWindow.h |