Table of Contents

Class OnDemandSurfaceTextureCaptureSession

On-demand version of SurfaceTextureCaptureSession.

public class OnDemandSurfaceTextureCaptureSession : SurfaceTextureCaptureSession
Inheritance
object
OnDemandSurfaceTextureCaptureSession
Inherited Members

Remarks

The results of this capture session may be more noisy compared to OnDemandCaptureSession. Requires OpenGL ES 3.0 or higher as the project's Graphics API. Works with single and multi-threaded rendering.

Methods

RequestCapture()

Updates the texture with the latest image from the camera.

public IEnumerator RequestCapture()

Returns

IEnumerator

RequestCapture(Action<Texture2D>)

Updates the texture with the latest image from the camera.

public void RequestCapture(Action<Texture2D> onDone)

Parameters

onDone Action<Texture2D>

Callback for when the operation is completed.

RequestCaptureAsync()

Updates the texture with the latest image from the camera.

public Awaitable<Texture2D> RequestCaptureAsync()

Returns

Awaitable<Texture2D>

The updated texture.

_onCaptureCompleted(string)

public override void _onCaptureCompleted(string textureId)

Parameters

textureId string