As compelling as your next game will be, you should always let players pause it for a short break. Sometimes, a game pause is used to let the player rest, but another reason might be to change some game setting such as volume or graphics quality.
Pausing the game usually involves a combination of freezing a game action, and also hiding or revealing UI items, to display a message to the player and provide UI controls to change settings.
In this recipe, we will implement a simple and effective pause screen that hides the previous recipe's quality settings slide when the game is being played, and reveals it when the game has been paused.