Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > Editor > UEditorEngine
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 |
virtual void PlayMap
&40;
const FVector &42; StartLocation,
const FRotator &42; StartRotation,
int32 DestinationConsole,
int32 InPlayInViewportIndex,
bool bUseMobilePreview
&41;
Remarks
Makes a request to start a play from editor session (in editor or on a remote platform)
Parameters
Name | 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) |