Class ReadbackRequest
Inherited Members
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Capture.dll
Syntax
public class ReadbackRequest
Fields
callback
Completion callback function.
Declaration
public Func<AsyncRequest<CaptureCamera.CaptureState>, AsyncRequest.Result> callback
Field Value
| Type | Description |
|---|---|
| Func<AsyncRequest<CaptureCamera.CaptureState>, AsyncRequest.Result> |
channel
Channel this readback request is for.
Declaration
public CaptureCamera.Channel channel
Field Value
| Type | Description |
|---|---|
| CaptureCamera.Channel |
renderTexture
Render texture for which the readback is requested
Declaration
public RenderTexture renderTexture
Field Value
| Type | Description |
|---|---|
| RenderTexture |
request
The request associated with this batched readback instance.
Declaration
public AsyncRequest<CaptureCamera.CaptureState> request
Field Value
| Type | Description |
|---|---|
| AsyncRequest<CaptureCamera.CaptureState> |
texture
Texture to which the readback data is to be copied to.
Declaration
public Texture2D texture
Field Value
| Type | Description |
|---|---|
| Texture2D |
Methods
InvokeCallback(byte[])
Invoke the request functor upon completion of the readback request.
Declaration
public void InvokeCallback(byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data |