UKismetSystemLibrary::QuitGame

Exit the current game

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h

Include

#include "Kismet/KismetSystemLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp

Syntax

static void QuitGame
(
    UObject * WorldContextObject,
    class APlayerController * SpecificPlayer,
    TEnumAsByte< EQuitPreference::Type > QuitPreference,
    bool bIgnorePlatformRestrictions
)

Remarks

Exit the current game

Parameters

Parameter

Description

SpecificPlayer

The specific player to quit the game. If not specified, player 0 will quit.

QuitPreference

Form of quitting.

bIgnorePlatformRestrictions

Ignores and best-practices based on platform (e.g PS4 games should never quit). Non-shipping only

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