Class DepthGrab
A convenience MonoBehaviour that captures the depth channel of a camera at a regular interval and writes encoded images to the file system.
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 DepthGrab : MonoBehaviour
Fields
_camera
The camera.
Declaration
public Camera _camera
Field Value
| Type | Description |
|---|---|
| Camera |
_format
The graphics format used for depth readback and encoding.
Declaration
public GraphicsFormat _format
Field Value
| Type | Description |
|---|---|
| GraphicsFormat |
_imageFormat
The image format used when encoding captured depth frames.
Declaration
public CaptureImageEncoder.ImageFormat _imageFormat
Field Value
| Type | Description |
|---|---|
| CaptureImageEncoder.ImageFormat |
_nameGenerator
Optional NameGenerator used to produce output file names.
Declaration
public NameGenerator _nameGenerator
Field Value
| Type | Description |
|---|---|
| NameGenerator |
_screenCaptureInterval
Time in seconds between successive depth capture operations.
Declaration
public float _screenCaptureInterval
Field Value
| Type | Description |
|---|---|
| float |