UEditorEngine::RequestPlaySession

Makes a request to start a play from a Slate editor session

Windows
MacOS
Linux

Deprecated

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

void RequestPlaySession
(
    bool bAtPlayerStart,
    TSharedPtr< class IAssetViewport > DestinationViewport,
    bool bInSimulateInEditor,
    const FVector * StartLocation,
    const FRotator * StartRotation,
    int32 DestinationConsole,
    bool bUseMobilePreview,
    bool bUseVRPreview,
    bool bUseVulkanPreview
)

Remarks

Makes a request to start a play from a Slate editor session

Parameters

Parameter

Description

bAtPlayerStart

Whether or not we would really like to use the game or level's PlayerStart vs the StartLocation

DestinationViewport

Slate Viewport to play the game in, or NULL to spawn a standalone PIE window

bInSimulateInEditor

True to start an in-editor simulation session, or false to kick off a play-in-editor session

StartLocation

If specified, this is the location to play from (via a PlayerStartPIE - Play From Here)

StartRotation

If specified, this is the rotation to start playing at

DestinationConsole

Where to play the game - -1 means in editor, 0 or more is an index into the GConsoleSupportContainer

bUseMobilePreview

True to enable mobile preview mode (PC platform only)

bUseVRPreview

True to enable VR preview mode (PC platform only)

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