Class RayPerceptionSensorComponent2D
A component for 2D Ray Perception.
Inherited Members
Namespace: Unity.MLAgents.Sensors
Syntax
public class RayPerceptionSensorComponent2D : RayPerceptionSensorComponentBase
Constructors
RayPerceptionSensorComponent2D()
Initializes the raycast sensor component.
Declaration
public RayPerceptionSensorComponent2D()
Methods
GetCastType()
Returns the RayPerceptionCastType for the associated raycast sensor.
Declaration
public override RayPerceptionCastType GetCastType()
Returns
Type | Description |
---|---|
RayPerceptionCastType |