How to take high res screenshots (Shipping builds)?

I want to add buttons in my archviz program that saves screenshots at different resolutions (regardless of the game’s window size), in a directory of my choosing.

  • F9: Save screenshot at 1920x1080
  • F10: Save screenshot at 3840x2160
  • F11: Save screenshot at 7680x4320

One option is the HighResShot console command, but that doesn’t works in Shipping builds, and doesn’t lets you choose the file path.

Another is FScreenshotRequest::RequestScreenshot(), but that doesn’t lets you choose the resolution.

Any other option?

2 Likes

Actually, HighResShot console command does works in shipping builds, but still doesn’t lets you choose the destination. It always saves on LocalAppData/ProjectName/Saved/Screenshots.

Any solutions to this? in regards to choosing the file destination?

You can do high res screenshot from viewport:

And you can access high res screen shot configuration using this global function:

GetHighResScreenshotConfig().SetResolution(width, height, 200.f);

GetHighResScreenshotConfig().FilenameOverride = fileFullpath = FPaths::ProjectDir() / TEXT(“Snapshots”) / fileName;

FScreenshotRequest::RequestScreenshot(false);

you can define your file path and name with filename= “your file path and name”

HighResShot 1920x1080 filename=filepath+filename.png

2 Likes