Class RayPerceptionSensorComponent2D
A component for 2D Ray Perception.
Inheritance
RayPerceptionSensorComponent2D
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/Ray Perception Sensor 2D", 50)]
public class RayPerceptionSensorComponent2D : RayPerceptionSensorComponentBase
Methods
| Name | Description |
|---|---|
| GetCastType() | Returns the RayPerceptionCastType for the associated raycast sensor. |