Hi, im trying to do custom replay system based on this tutorial: https://michaeljcole.github.io/wiki.unrealengine.com/Replay_System_Tutorial/everything seems to work except pause button. Have no idea why. What can be the problem ?
bool APC_ReplaySpectator::SetCurrentReplayPausedState(bool bDoPause) { AWorldSettings* WorldSettings = GetWorldSettings();
// Set MotionBlur off and Anti Aliasing to FXAA in order to bypass the pause-bug of both
static const auto CVarAA = IConsoleManager::Get().FindConsoleVariable(TEXT("r.DefaultFeature.AntiAliasing"));
static const auto CVarMB = IConsoleManager::Get().FindConsoleVariable(TEXT("r.DefaultFeature.MotionBlur"));
if (bDoPause)
{
PreviousAASetting = CVarAA->GetInt();
PreviousMBSetting = CVarMB->GetInt();
// Set MotionBlur to OFF, Anti-Aliasing to FXAA
CVarAA->Set(1);
CVarMB->Set(0);
WorldSettings->Pauser = PlayerState;
return true;
}
// Rest MotionBlur and AA
CVarAA->Set(PreviousAASetting);
CVarMB->Set(PreviousMBSetting);
WorldSettings->Pauser = NULL;
return false;
}