ITeye博客

[UE4]退出游戏的API(C++)

aigo · 2016-04-18 00:32 · UnrealEngine · 开源软件 · Markdown

官方文档:

UKismetSystemLibrary::QuitGame

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Kismet/UKismetSystemLibrary/QuitGame/index.html

 

示例:

#include "KismetSystemLibrary.h"

void ASomeActor::SomeActorFunction()
{
	UKismetSystemLibrary::QuitGame(this, nullptr, EQuitPreference::Quit);
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。