# Restart Usage

{% hint style="info" %}
This function is intended to work **only in the packaged game** and will not function correctly in the editor.
{% endhint %}

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++**

```cpp
#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)**

<figure><img src="https://2742202517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9oU9MCH7DxR6hOM3H5e%2Fuploads%2Fmvv03jOo9goKkdBux4im%2F%7B64A0A38C-A7E3-4BF3-A9CE-804AFC2F4279%7D.png?alt=media&#x26;token=7f78484f-7231-4b38-a2a5-111955634a2e" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Never leave the **ExtraCommandLine** parameter empty. Always provide a valid string, even if no additional arguments are needed, to ensure the restart works correctly.
{% endhint %}
