Views/ Pause Menu
An example implementation that you can use directly or as a starting point. You can refer to the demo game samples to see it in action or see the implementation details.
PauseMenuView
Base class with buttons:
- Continue
- Load Game
- Settings
- Main Menu
- Quit
Example
PauseMenuEscapeAction
Example Usage:
In a visual novel, you might want to prevent going back before the dialogue finishes. Previously, using InputEscapeManager.SetBlocked(true) would block all escape actions (including opening the pause menu). With this new class, you can add the pause menu action to the end of the stack so that the pause menu remains accessible while blocking other back actions.