Take High Res Screenshot function ignoring its given camera

I am working on a drone companion that goes to where the player points and takes a picture of what it can see- the issue is that the shot always comes out of the default player’s third person camera instead of the specified camera actor. How can I choose the shot POV?

Some answers on similar threads suggest to swap the player’s POV for a moment, but this is not a solution available to me

Welcome @m_awd,

Take High Res Screenshot can only take a screenshot of a players view. If you want to capture an image from your companion then you need to add SceneCaptureComponent2D to said companion.

In details panel for said component you need to click on Texture Target and create new Render Target. You can do this in content browser too. You need to open this Render Target Texture and set it’s size and tweak it so it looks as you want.

After that you can do with it whatever you want. If you need to export it outside the engine, I believe there are some plugins that can do it for you or you could write your own piece of code.


1 Like

Hey thank you this worked great, and solved my other problem of taking too long to capture a high resolution output to boot.

I did figure out how to export some frames as png as well, I just had to set the Render Target Format to RTF RGBA8 SRGB from the default RTF RGBA16f before it would export properly

Awesome. Glad I was able to help. :partying_face: