Include UMG in an offscreen Linux packaged screenshot
Section titled “Include UMG in an offscreen Linux packaged screenshot”- Status: current
- Engine: ue6-main
61e2877e10, Linux x86_64, Epic clang 23.1.5 - Context: standalone Linux Development package with Vulkan SM6 and a native UMG viewport widget
- Prerequisites: a writable capture directory, a working Vulkan offscreen launch and a live Slate game viewport
Symptom
Section titled “Symptom”A plain shot filename=... requests a scene capture. A UI fixture needs the screenshot path that includes the Slate viewport and its widgets.
Smallest example / reproduction
Section titled “Smallest example / reproduction”With $P and $WRAP set as in the README:
"$WRAP" ui-offscreen timeout -k 10s 120s "$P/Out/Linux/CoopZero.sh" \ -RenderOffscreen -windowed -ResX=1280 -ResY=720 -nosound -unattended -stdout \ "-ExecCmds=delay 3 shot showui filename=$P/Saved/welcome.png -nosuffix,delay 5 quit" \ -abslog="$P/Saved/ui-offscreen.log"Solution
Section titled “Solution”Request shot showui after the widget is in the viewport. Name a unique absolute path for each state and leave time to write it before quitting. Use the Development log to identify the menu or gameplay state immediately before each capture. Check the output PNG signature, size and dimensions.
Why it works
Section titled “Why it works”showui selects the Slate screenshot path when the game viewport has a valid window. The -RenderOffscreen Vulkan path provides the render target and keeps the monitor available. The delayed commands let the menu and game frames render before readback.
Verified
Section titled “Verified”- Evidence level: runs in packaged build
- How:
bash Scripts/prove_ui.shran the offscreen package withshot showuifor each state and printedStep 11 packaged assertions passed.Saved/step11-proof.ypOYAl/captures.logloggedrhifeaturelevel="SM6",HUD textures=29andHUD bubble bird=Hen1 icon=waterbefore the need capture. All four PNGs in that directory were 1280×720 and passed the size and signature checks. - Date / by: 2026-11-25, Coop Zero Step 11
Limits and assumptions
Section titled “Limits and assumptions”This verifies the capture command, file metadata and scripted state markers. Visual quality and physical controller operation require owner review. -nullrhi remains appropriate for logs and cannot supply the rendered screenshot.