Restart Usage

This function is intended to work only in the packaged game and will not function correctly in the editor.

A restart is required if you change FSR settings, such as the swapchain configuration. To simplify this, the plugin provides a Restart node with the ability to pass custom launch arguments. You can call this node from Blueprints or via C++ code.

Usage in C++

#include "RestartGame.h"

// Example in some game manager class
void UMyGameManager::ApplyFSRChanges()
{
    // Extra command line arguments you want to pass
    FString ExtraArgs = TEXT("-Restart"); //Restart is just an exemple

    // Call the restart function
    URestartGame::RestartGameWithCommandLine(ExtraArgs);
}

Usage in Blueprint (Recommended)

Last updated