Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h |
Include |
#include "Kismet/KismetSystemLibrary.h" |
Source |
/Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp |
static void QuitGame
(
UObject * WorldContextObject,
class APlayerController * SpecificPlayer,
TEnumAsByte< EQuitPreference::Type > QuitPreference,
bool bIgnorePlatformRestrictions
)
Exit the current game
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 |