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. fileciteturn20file2

Serialized Atoms & UI

  • BoolVariable paused
  • VoidEvent enableTimeControls, disableTimeControls, captureStarted
  • GameObject warningPanel fileciteturn20file2

Flow

  • Start() — registers OnCaptureStarted to captureStarted.
  • OnCaptureStarted() — raises disableTimeControls, sets paused = true, and shows warningPanel.
  • OnDismissButtonPressed() — hides the panel, sets paused = false, then raises enableTimeControls.
  • OnDestroy() — unregisters the event handler. fileciteturn20file2

Integration Notes

Place this on a UI canvas that stays loaded during gameplay so the warning can show immediately when capture begins.