Constructor RenderTextureSensor
RenderTextureSensor(RenderTexture, bool, string, SensorCompressionType)
Initializes the sensor.
Declaration
public RenderTextureSensor(RenderTexture renderTexture, bool grayscale, string name, SensorCompressionType compressionType)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTexture | renderTexture | The RenderTexture instance to wrap. |
| bool | grayscale | Whether to convert it to grayscale or not. |
| string | name | Name of the sensor. |
| SensorCompressionType | compressionType | Compression method for the render texture. |