UE4 退出(关闭)程序 代码

UE4.17.2,VS2017

在要执行退出的地方加上如下语句

UKismetSystemLibrary::QuitGame(this, nullptr, EQuitPreference::Quit);

看很多例子要引入

#include "KismetSystemLibrary.h"

但我试的结果是这个include会报错,不加就好

猜你喜欢

转载自blog.51cto.com/shuxiayeshou/2300556