UEditorEngine::CreateNewPlayInEditorInstance

Creates a new Play in Editor instance (which may be in a new process if not running under one process. This reads the current session state to start the next instance needed.

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 CreateNewPlayInEditorInstance
(
    FRequestPlaySessionParams & InRequestParams,
    const bool bInDedicatedInstance,
    const EPlayNetMode InNetMode
)

Remarks

Creates a new Play in Editor instance (which may be in a new process if not running under one process. This reads the current session state to start the next instance needed.

Parameters

Parameter

Description

InRequestParams

Mostly used for global settings. Probably shouldn't vary per instance.

bInDedicatedInstance

If true, this will create a dedicated server instance. Shouldn't be used if we're using multiple processes.

InNetMode

The net mode to launch this instance with. Not pulled from the RequestParams because some net modes (such as ListenServer) need different net modes for subsequent instances.

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