CaptureWarningUI
Overview
Shows a blocking warning panel the moment capture begins. While visible it pauses the game and disables time controls; dismissing the panel resumes gameplay and re‑enables time controls. fileciteturn20file2
Serialized Atoms & UI
- BoolVariable
paused - VoidEvent
enableTimeControls,disableTimeControls,captureStarted - GameObject
warningPanelfileciteturn20file2
Flow
- Start() — registers
OnCaptureStartedtocaptureStarted. - OnCaptureStarted() — raises
disableTimeControls, setspaused = true, and showswarningPanel. - OnDismissButtonPressed() — hides the panel, sets
paused = false, then raisesenableTimeControls. - OnDestroy() — unregisters the event handler. fileciteturn20file2
Integration Notes
Place this on a UI canvas that stays loaded during gameplay so the warning can show immediately when capture begins.