Class ScreenCapture
Inherited Members
Namespace: Unity.Simulation
Syntax
public class ScreenCapture : BaseLogger
Constructors
ScreenCapture(String)
Declaration
public ScreenCapture(string capturePath = "")
Parameters
Type | Name | Description |
---|---|---|
String | capturePath |
Methods
ScreenCaptureAsync<T>(Camera, GraphicsFormat, String, CaptureImageEncoder.ImageFormat)
Capture Screenshot asynchronously for a given source camera
Declaration
public void ScreenCaptureAsync<T>(Camera sourceCamera, GraphicsFormat renderTextureFormat, string path, CaptureImageEncoder.ImageFormat format = CaptureImageEncoder.ImageFormat.Raw)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
Camera | sourceCamera | Source camera for which the screen capture is to be performed |
GraphicsFormat | renderTextureFormat | Render Texture format for the screen capture |
String | path | Path where the image is to be saved |
CaptureImageEncoder.ImageFormat | format | Image format in which the file is to be saved. Default is set to RAW |
Type Parameters
Name | Description |
---|---|
T |