Class VectorSensorComponent
A SensorComponent that creates a VectorSensor.
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/Vector Sensor", 50)]
public class VectorSensorComponent : SensorComponent
Properties
| Name | Description |
|---|---|
| ObservationSize | The number of float observations in the VectorSensor |
| ObservationStacks | Whether to stack previous observations. Using 1 means no previous observations. Note that changing this after the sensor is created has no effect. |
| ObservationType | The type of the observation. |
| SensorName | Name of the generated VectorSensor object. Note that changing this at runtime does not affect how the Agent sorts the sensors. |
Methods
| Name | Description |
|---|---|
| CreateSensors() | Creates a VectorSensor. |
| GetSensor() | Returns the underlying VectorSensor |