Skip to content

Preview

Purpose

Owns editor UI systems for drawing and coordinating the central live preview panel in Snap Studio Pro.

This territory handles preview-facing UI composition, preview overlays, toolbar controls, aspect layout, transform synchronization, FPS display, and live preview draw coordination.

Owns

  • Central preview panel UI
  • Preview toolbar UI
  • Preview empty state UI
  • Preview overlay drawing
  • Crop/grid guide drawing
  • Preview rect/aspect calculations
  • Preview FPS diagnostics UI
  • Preview transform synchronization
  • Live preview draw coordination

Does NOT Own

  • Preview scene lifecycle ownership
  • Low-level rendering implementation
  • Capture execution
  • Export orchestration
  • Rendering pipeline implementation
  • Prefab loading implementation

Allowed Dependencies

Preview panels may depend on:

  • Preview facades
  • Capture settings models
  • Rendering-facing preview helpers
  • Session restore UI
  • Shared panel helpers
  • Overlay feature systems
  • Unity Editor IMGUI APIs

Preview panels should avoid depending directly on:

  • pipeline-specific rendering internals
  • export systems
  • low-level capture implementation

Notes

Panels/Preview is UI territory, not the owner of the full preview architecture.

It owns how the preview is drawn and interacted with in the editor window.

Preview lifecycle, prefab loading, camera management, scene setup, and rendering implementation remain owned by Preview and Rendering territories outside Panels.

MiddlePreviewPanel is intentionally a UI facade/orchestrator. It coordinates multiple preview-facing concerns but delegates actual behaviour to focused systems.

Future Candidates

  • Keep central preview UI orchestration readable and explicit.
  • Avoid moving preview scene lifecycle ownership into panel UI.
  • Continue extracting small helpers when preview UI logic grows.