[Solved] Taking a screenshot in editor with arbitrary resolution

Hello, I want to take screenshots of the Game Window, as it is rendered in Game mode, but in higher resolution than the window itself.
I used some scripts like The Screen Shooter from asset store and similar scripts from the forum, but they take a picture from camera, which is different from what is rendered in Game Window. There are Canvas screen overlays and post processing effects that are not captured with the “screen capturing” scripts mentioned above.
Can you recommend any script that works for that?

Try Unity API ScreenCapture.CaptureScreenhot.

You can use the integer ‘superSize’ parameter to set the capture resolution.

1 Like

Thanks, this is the correct API, however superSize just upscales image just like in MSPaint, which is useless, so we need to add desired resolution from the menu.


I made a simple window to help make screenshots
5489865--562518--upload_2020-2-17_21-12-16.png
if someone wants it there is the code:

13 Likes

thanks @Tymianek works well for me, exactly what I was looking for. Also works well in simulator mode.

1 Like

not sure why but no screenshot appears.