How to take a screenshot including UI only using Blueprint?

Nope. But there’s a plugin on the marketplace that does it. You’ll find it if you search. I’ve personally put it aside, for now.
Maybe future updates will introduce this.

also, for those wondering, the screen shot run with “shot” is found in:

C:\Users\batman\AppData\Local\SevenDeadlySeasTheLastLegue\Saved\Screenshots\Windows

After beating my head against the wall for so long I probably could have just done this in C++ even though I don’t know any C++ I finally found a solution.

It’s like running shot showui but it lets you name the file AND specify a directory.

the command is bugscreenshot DriveLetter:/Directory/Project/your file name.png

so bugscreenshot c:/Folder/UE Project/Screenshot.png The space bewteen the command and file name is required.

Would put a screenshot that includes the UI in to a directory Folder/UE Project on your ‘c:’ drive name Screenshot.png

Works in PIE and “Standalone Game”. I’m leaving his here because it is the first result in google.

This worked for me but i cant seem to get the increment number working. It just keeps saving out the same screenshot without an increment number. How do I get that working? Thanks for your help

So after a lot of time on other things I ended up back at this problem again. I’ve tried some of the paid plugins and none of them worked for me. I am posting this here for the same reasons as before this is the first thing that gogole serves up.
**
THIS IS NOT A COPY/PASTE SOLUTION**!!! To make this work for you, you MUST know what you are doing! I am not tech support. But I at least want to show others what it can look like. ALSO I am not an expert by any means, this could be all wrong. This is just a first draft and how I got it to work for me. I considered turning it into a plugin, but decided this was better.

START HERE
To use what I Have bellow you need to enable the “Blueprint File Utilities” plug-in. It is a stock UE/Epic games plugin. This is also all done in UE5.6. I don’t know how far back any of this will work. But you can try in older versions.

The WHAT
Below is the BP I put together using the “bugscreenshot “ with an “Execute Console Command” node. That outputs the screenshot to a directory, then the BP below picks it up, adds it to a material and render target. Then exports it resized. I use this for save game thumbnails in my game. (Why explained at the bottom)

Pay extra attention to the path related nodes in these BP. What works for me might not work for you. Also. Note I am using Make and Combine Array nodes. This will automatically handle slashes. So MacOS, Linux, Windows doesn’t mater. The appropriate Slashes will be used for the paths for that enviroment. TLDR - Combine for paths. Append for file names ONLY.

The HOW
This first one is for taking the screen shot. This is where “bugscreenshot “ lives. This will be different for your project. I put it here for context. Here a delay is used to give Unreal time to take the screenshot before moving on. A note: Better to do this with an “is valid” node of some type checking the screenshot exists before continuing on. I was testing and lazy.

https://blueprintue.com/blueprint/q79qlehc/

This is the spaghetti that loads that screen shot, resizes it, saves it to disk, and then deletes the one created with the console command. Again, I’m using delays and should be using “is Valid”.

https://blueprintue.com/blueprint/gu6–mcb/

The WHY
My entire project exists in the HUD. So this command is the only way, so far, I have been able to screenshot my game for save game thumbnails. At larger screen resolutions I found the screenshots made with the command above can cause slowdowns, esp on higher resolutions. Which makes complete sense. All of this addresses that. My game uses JSON for save files. I want the user to be able to edit them should they choose. My save file stores the path of its respective screenshot as a string. Then my Load/Save game UI collects it dynamically form disk using that path. My game is an open world Visual Novel so “Save scumming” is kind of a requirement. So, lots of saves, lots of screen shots, which equals massive performance hit to the UI.

After…
As I said above. I am not an expert. This is what worked for me. Some of it might work for you. However if you are just starting out this could be difficult and I just don’t have time to walk you through things. Search is you friend. All else fails Google and ChatGPT can help you too.

Also if you actually know what you are doing, and want to tell me this is dumb. Go for it. I don’t care. Scream into the wind little one. I got Nachos to eat.