'f9' screenshot resolution

Hello,

I’ve been wondering, Is there a way to change the resolution of the screenshot that is created by hitting the ‘f9’ key? (to something higher) I am aware of the HighResShot command, but it doesn’t seem to work unless I’m in the play in editor mode, and I’d like to take the screenshot while it’s either simulating, or not in any preview mode at all.

Thanks

There is a documentation on this which says if you type “HighResShot” in the command line, you can screenshot on a high res