UKismetSystemLibrary::QuitGame

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

References

Module

Engine

Header

Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h

Source

Runtime/Engine/Private/KismetSystemLibrary.cpp