Class BufferSensorComponent
A SensorComponent that creates a BufferSensor.
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/Buffer Sensor", 50)]
public class BufferSensorComponent : SensorComponent
Properties
| Name | Description |
|---|---|
| MaxNumObservables | This is the maximum number of entities the |
| ObservableSize | This is how many floats each entities will be represented with. This number is fixed and all entities must have the same representation. |
| SensorName | Name of the generated BufferSensor object. Note that changing this at runtime does not affect how the Agent sorts the sensors. |
Methods
| Name | Description |
|---|---|
| AppendObservation(float[]) | Appends an observation to the buffer. If the buffer is full (maximum number of observation is reached) the observation will be ignored. the length of the provided observation array must be equal to the observation size of the buffer sensor. |
| CreateSensors() | Create the ISensors. This is called by the Agent when it is initialized. |