SetPlayInEditorWorld

Sets GWorld to the passed in PlayWorld and sets a global flag indicating that we are playing in the Editor.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Editor.h

Include

#include "Editor.h"

Source

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

Syntax

UWorld * SetPlayInEditorWorld
(
    UWorld * PlayInEditorWorld
)

Remarks

Sets GWorld to the passed in PlayWorld and sets a global flag indicating that we are playing in the Editor.

Returns

the original GWorld

Parameters

Parameter

Description

PlayInEditorWorld

PlayWorld

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