How to save the game with a screenshot?

Hi everybody.

I can save the game and load it from the main menu. But I want to save a screenshot from the camera while saving it and show it in the load menu.

How do I take a screenshot from the camera (realtime and blueprint)?

Thanks.

I set this up with a button on screen. Though you can call any event to do it.

Thanks. But how to return the texture2d after the screenshot? Do not you control the path to the file?

I’m not sure what your trying to do. It saves the file in your UE4 project folder as a screenshot. If you build it to mobile it would save it to your photos, and require access to camera. If you write some code for it to save it into the game package then the garbage collector wont come around to delete it. So you would have to figure out a replace function, and delete function, or your players would have increasing file size compounding all the time.