Scripting API

ScreenCapture

static class in UnityEngine · UnityEngine.ScreenCaptureModule

3 of 3 of Unity's membersUnity's documentation
In Tassix

Screenshots from scripts. Not supported yet: each call says so once (MCP's view_screenshot and the player's --screenshot capture frames).

Methods 3

static void CaptureScreenshot(string filename)
static void CaptureScreenshot(string filename, int superSize)
static void CaptureScreenshot(string filename, StereoScreenCaptureMode stereoCaptureMode)
static Texture2D? CaptureScreenshotAsTexture()
static Texture2D? CaptureScreenshotAsTexture(int superSize)
static Texture2D? CaptureScreenshotAsTexture(StereoScreenCaptureMode stereoCaptureMode)
static void CaptureScreenshotIntoRenderTexture(RenderTexture renderTexture)