Class RayPerceptionSensorComponent2D
A component for 2D Ray Perception.
Inheritance
RayPerceptionSensorComponent2D
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.MLAgents.Sensors
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 |