Class RayPerceptionSensorComponent2D
A component for 2D Ray Perception.
Inheritance
RayPerceptionSensorComponent2D
Inherited Members
UnityEngine.Component.guiText
UnityEngine.Component.guiElement
UnityEngine.Component.guiTexture
Namespace: Unity.MLAgents.Sensors
Syntax
[AddComponentMenu("ML Agents/Ray Perception Sensor 2D", 50)]
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 |