Class CaptureRenderTexture
Capture class for capturing RenderTexture contents.
Namespace: Unity.Simulation
Syntax
public static class CaptureRenderTexture
Methods
Capture(RenderTexture, Func<AsyncRequest<Object>, AsyncRequest.Result>)
Declaration
public static AsyncRequest<object> Capture(RenderTexture src, Func<AsyncRequest<object>, AsyncRequest.Result> functor = null)
Parameters
Type | Name | Description |
---|---|---|
RenderTexture | src | RenderTexture to capture. |
Func<AsyncRequest<Object>, AsyncRequest.Result> | functor | Completion functor for handling the captured data. The object passed is a byte[] of the captured data. |
Returns
Type | Description |
---|---|
AsyncRequest<Object> | AsyncRequest<object> |