RealDocs

UKismetSystemLibrary::QuitEditor

function Engine Blueprint Since 4.0
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintCallable

Description

Closes the Unreal Editor application. Intended for editor utility Blueprints and scripted tooling, not runtime gameplay.

Caveats & Gotchas

  • Only compiled in editor builds (guarded by WITH_EDITOR) — calling this from a packaged game Blueprint node is impossible since the function does not exist outside the editor.
  • Closes the editor immediately without prompting to save unsaved levels or assets, so scripted callers should save explicitly first.
  • Has no effect in Play-In-Editor sessions on the running game instance — it targets the editor process itself, not the PIE world.

Signature

static void QuitEditor();

Return Type

void

Example

Quit the editor from an Editor Utility Widget C++
#if WITH_EDITOR
UKismetSystemLibrary::QuitEditor();
#endif

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.