Accepting player input while paused C++

We found a solution you have to make the input executable when paused with a command like this.

FInputActionBinding& toggle = InputComponent->BindAction(“Pause”, IE_Pressed, this, &ATD8Character::callPause);
toggle.bExecuteWhenPaused = true;

2 Likes