Constructor RenderTextureReader
RenderTextureReader(RenderTexture, Camera, Action<int, NativeArray<T>, RenderTexture>)
Creates a new RenderTextureReader<T> for the given RenderTexture, Camera, and image readback callback
Declaration
public RenderTextureReader(RenderTexture source, Camera cameraRenderingToSource, Action<int, NativeArray<T>, RenderTexture> imageReadCallback)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTexture | source | The RenderTexture to read from. |
| Camera | cameraRenderingToSource | The Camera which renders to the given renderTexture. This is used to determine when to read from the texture. |
| Action<int, NativeArray<T>, RenderTexture> | imageReadCallback | The callback to call after reading the texture |