Matthew Miner

Screenshots with Unity Recorder

There’s a chance your Unity project contains a script like this to take screenshots:

using UnityEditor;
using UnityEngine;

class MyTools
{
    [MenuItem("MyTools/Screenshot")]
    static void Screenshot()
    {
        ScreenCapture.CaptureScreenshot("MyScreenshot");
    }
}

If you only need screenshots from the editor, consider Unity’s Recorder. You commonly use this package to capture gameplay videos, but it can also save single stills on demand. You can set custom resolutions, target specific cameras, and switch between image formats. You can even wow your friends with 360° panoramas.

  1. Install Recorder via the package manager.
  2. From the Recorder window, add an Image Sequence recorder.
  3. Set Recording Mode to “Single Frame”.
  4. Uncheck Exit Play Mode.
  5. When you need a screenshot, hit Start Recording.

Unity Recorder configured for screenshot

It puts ScreenCapture.CaptureScreenshot to shame.