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: Unity.ML-Agents.dll
Syntax
[AddComponentMenu("ML Agents/Ray Perception Sensor 2D", 50)]
public class RayPerceptionSensorComponent2D : RayPerceptionSensorComponentBase
Methods
GetCastType()
Returns the RayPerceptionCastType for the associated raycast sensor.
Declaration
public override RayPerceptionCastType GetCastType()
Returns
Type | Description |
---|---|
RayPerceptionCastType |
|