GamePauser¶
Debug utility that pauses the Unity Editor with a configurable hotkey.
Namespace: Octoputs.Utils
Inherits: MonoBehaviour
Overview¶
GamePauser is a development-time helper that listens for a key press and toggles EditorApplication.isPaused. Useful for inspecting runtime state mid-frame during playtesting. It persists across scenes via DontDestroyOnLoad.
Properties¶
| Property | Type | Description |
|---|---|---|
| pauseKey | KeyCode |
The key that toggles pause. Default: F8. |
| showPauseMessage | bool |
Whether to log a pause/resume message to the console. |
| messageColor | Color |
Color of the console log message. |