high_res_screenshot
Capture a high-resolution supersampled screenshot of the Unreal Editor viewport or active PIE session and write it synchronously to a PNG for verification.
Instructions
Capture a high-resolution (supersampled) screenshot and write it to a PNG SYNCHRONOUSLY. Prefers the Play-In-Editor game view when PIE is active (captured_pie=true); otherwise the active editor viewport. Drives FViewport::TakeHighResScreenShot() + FViewport::Draw(), which renders at resolution_multiplier x the viewport size and blocks (via ProcessScreenShots) until the file is on disk. The "HighResShot" exec path defers the write to the next render frame, which never runs headless, so it writes nothing. Requires a real RHI (errors honestly under -nullrhi) and a live viewport. Note: the supersampled path re-renders the scene, so the UMG/Slate HUD is NOT included; use capture_pie_screenshot for a HUD-inclusive PIE shot.
Returns: { written: bool, file_path: string, resolution_multiplier: int, width: int, height: int, captured_pie: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional output path; a bare name lands under <ProjectSaved>/Screenshots/, an absolute path is respected verbatim. ".png" is appended if missing. Defaults to a timestamped name. | |
| resolution_multiplier | No | Resolution multiplier (clamped 1..16, default 2). |