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.