UEditorEngine::GetEditorWorldContext

Returns the WorldContext for the editor world.

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/EditorEngine.cpp

Syntax

FWorldContext & GetEditorWorldContext
(
    bool bEnsureIsGWorld
)

Remarks

Returns the WorldContext for the editor world. For now, there will always be exactly 1 of these in the editor.

Parameters

Parameter

Description

bEnsureIsGWorld

Temporarily allow callers to validate that this maps to GWorld to help track down any conversion bugs

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