UEditorEngine::OnSwitchWorldForSlatePieWindow

Hack to switch worlds for the PIE window before and after a slate event

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/PlayLevel.cpp

Syntax

int32 OnSwitchWorldForSlatePieWindow
(
    int32 WorldID,
    int32 WorldPIEInstance
)

Remarks

Hack to switch worlds for the PIE window before and after a slate event

Returns

The ID of the world to restore later or -1 if no world to restore

Parameters

Parameter

Description

WorldID

The id of the world to switch to where -1 is unknown, 0 is editor, and 1 is PIE

PIEInstance

When switching to a PIE instance, this is the specific client/server instance to use

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss