UEditorEngine::PlayMap

Makes a request to start a play from editor session (in editor or on a remote platform)

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

virtual void PlayMap
(
    const FVector * StartLocation,
    const FRotator * StartRotation,
    int32 DestinationConsole,
    int32 InPlayInViewportIndex,
    bool bUseMobilePreview
)

Remarks

Makes a request to start a play from editor session (in editor or on a remote platform)

Parameters

Parameter

Description

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

InPlayInViewportIndex

Viewport index to play the game in, or -1 to spawn a standalone PIE window

bUseMobilePreview

True to enable mobile 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