Configure and Capture the Viewport
Level editor viewport and render modes
Viewport type and render-mode tools work only with recognized level editor viewports. Asset editor previews are outside their scope. If you supply both ViewMode and ShowFlag, the tool validates both and applies neither if validation fails.
Switch to the level editor viewport you want to capture, then set the render mode and display options. Check the image in that viewport before requesting a screenshot.
Screenshot output
CaptureViewport normalizes viewport alpha to fully opaque before PNG encoding, so saved files and embedded screenshots display correctly in standard image viewers and Fab workflows.
MaxCapturePixels defaults to 8294400. The Base64-encoded screenshot also counts against MaxResponseBodyBytes.
If a capture fails, check whether it hit the pixel limit or exceeded the response budget for embedded data. These are separate limits.