Class RenderTextureSensorComponent
Component that wraps a RenderTextureSensor.
Inheritance
RenderTextureSensorComponent
Implements
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MLAgents.Sensors
Assembly: solution.dll
Syntax
[AddComponentMenu("ML Agents/Render Texture Sensor", 50)]
public class RenderTextureSensorComponent : SensorComponent, IDisposable
Properties
| Name | Description |
|---|---|
| CompressionType | Compression type for the render texture observation. |
| Grayscale | Whether the RenderTexture observation should be converted to grayscale or not. Note that changing this after the sensor is created has no effect. |
| ObservationStacks | Whether to stack previous observations. Using 1 means no previous observations. Note that changing this after the sensor is created has no effect. |
| RenderTexture | Stores the RenderTexture associated with this sensor. |
| SensorName | Name of the generated RenderTextureSensor. Note that changing this at runtime does not affect how the Agent sorts the sensors. |
Methods
| Name | Description |
|---|---|
| CreateSensors() | Create the ISensors. This is called by the Agent when it is initialized. |
| Dispose() | Clean up the sensor created by CreateSensors(). |