Class CameraGrab
A convenience MonoBehaviour that periodically captures color images from one or more cameras and writes them to the file system at a configurable interval.
Inherited Members
Object.GetEntityId()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.SimulationPro
Assembly: Unity.SimulationPro.Capture.dll
Syntax
public class CameraGrab : MonoBehaviour
Fields
_batchReadback
The batch readback.
Declaration
[HideInInspector]
public bool _batchReadback
Field Value
| Type | Description |
|---|---|
| bool |
_batchSize
The batch size.
Declaration
[HideInInspector]
public int _batchSize
Field Value
| Type | Description |
|---|---|
| int |
_cameraSources
The cameras whose color output is captured each interval.
Declaration
public Camera[] _cameraSources
Field Value
| Type | Description |
|---|---|
| Camera[] |
_customFilePath
Optional sub-directory path appended to the default screen-capture output folder.
Declaration
public string _customFilePath
Field Value
| Type | Description |
|---|---|
| string |
_format
The graphics format used when reading back the render texture.
Declaration
public GraphicsFormat _format
Field Value
| Type | Description |
|---|---|
| GraphicsFormat |
_imageFormat
The image format used when encoding captured frames.
Declaration
public CaptureImageEncoder.ImageFormat _imageFormat
Field Value
| Type | Description |
|---|---|
| CaptureImageEncoder.ImageFormat |
_nameGenerator
Optional NameGenerator used to produce file names for each capture.
Declaration
public NameGenerator _nameGenerator
Field Value
| Type | Description |
|---|---|
| NameGenerator |
_screenCaptureInterval
Time in seconds between successive capture operations.
Declaration
public float _screenCaptureInterval
Field Value
| Type | Description |
|---|---|
| float |