How use PreExit()

Hi guys,

I try to use PreExit() in GameEngine Class but the function is never call when i close the game. However, the constructor is call.
Here is my code :

UMyGameEngine::UMyGameEngine(const FObjectInitializer &PCIP) : Super(PCIP)
{

}

void UMyGameEngine::PreExit()
{
	Super::PreExit();
	FPlatformProcess::Sleep(10);
}

void UMyGameEngine::Init(class IEngineLoop* InEngineLoop)
{
	Super::Init(InEngineLoop);
	FPlatformProcess::Sleep(10);
}

Thanks.

you can try to use the kill pid command on the Linux terminal to trigger it.

Try use ShoutDown event in gameInstance

FPlatformMisc::RequestExit(0);
If any problem let me know. My discord Andrew Bindraw #9014