Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ScreenCapture

Provides methods to take screenshots.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ScreenCaptureModule
public static class ScreenCapture

Static Methods

Method

Description

CaptureScreenshotCaptures a screenshot and saves it as a .png file to a specified path.
CaptureScreenshotAsTextureCaptures a screenshot of the game view into a Texture2D object.
CaptureScreenshotIntoRenderTextureCaptures a screenshot of the game view into a RenderTexture object.

Enums

Enum

Description

ScreenCapture.StereoScreenCaptureModeEnumeration specifying the eye texture to capture when using ScreenCapture.CaptureScreenshot and when stereo rendering is enabled.