How to take a screenshot:
It is really simple to take a screenshot in Unreal Engine. In order to do that, create a simple custom event and in the event graph, right-click and search for “Execute console command” and get it.
It would look something like this:
Image 1. Screenshot in Unreal Engine: Execute console command
Now type “shot” in the command of this node it would look like this:
Image 2. Screenshot in Unreal Engine: Now type “shot
How to get the path of the screenshot:
In order to get the path of the screenshot folder, you need to search “Screen shot Dir” in the event graph and add an append node with it. Add four entries to it. Type “ScreenShot” in the second entry. Make a variable of the third entry and name it whatever you like such as screenshot number give it value “00000”. From the Return Value, you can put a check for “FileExists” and connect it to a branch.
It would look like this:
Image 3. Get the path of the screenshot: search “Screen shot Dir”
You might need to run a loop which will check if the file with same name exists or not.
Or you can try to copy this function below:
Image 4. Screenshot in Unreal Engine: Copy this function
Need help? Contact Support
Seek advice. Connect with others. Share your experiences. Join our lively Community Forum today.