How to save Render Target (image) to a file?

How to save Render Target (TextureRenderTarget2D) to a file / on a hard drive (image.jpg)?

  • using blueprints (c++ at last)

im not sure, but jpge.cpp has a function called
“compress_image_to_jpeg_file()” that sounds useful. it doesn’t take a TextureRenderTarget2D, so you might need to find a way to convert that into a const uint8 pointer first.