docs.unity.cn
    Show / Hide Table of Contents

    Class RayPerceptionSensorComponent2D

    A component for 2D Ray Perception.

    Inheritance
    Object
    SensorComponent
    RayPerceptionSensorComponentBase
    RayPerceptionSensorComponent2D
    Inherited Members
    RayPerceptionSensorComponentBase.SensorName
    RayPerceptionSensorComponentBase.DetectableTags
    RayPerceptionSensorComponentBase.RaysPerDirection
    RayPerceptionSensorComponentBase.MaxRayDegrees
    RayPerceptionSensorComponentBase.SphereCastRadius
    RayPerceptionSensorComponentBase.RayLength
    RayPerceptionSensorComponentBase.RayLayerMask
    RayPerceptionSensorComponentBase.ObservationStacks
    RayPerceptionSensorComponentBase.RaySensor
    RayPerceptionSensorComponentBase.GetStartVerticalOffset()
    RayPerceptionSensorComponentBase.GetEndVerticalOffset()
    RayPerceptionSensorComponentBase.CreateSensors()
    RayPerceptionSensorComponentBase.GetRayPerceptionInput()
    Namespace: Unity.MLAgents.Sensors
    Syntax
    public class RayPerceptionSensorComponent2D : RayPerceptionSensorComponentBase

    Methods

    GetCastType()

    Returns the RayPerceptionCastType for the associated raycast sensor.

    Declaration
    public override RayPerceptionCastType GetCastType()
    Returns
    Type Description
    RayPerceptionCastType
    Overrides
    RayPerceptionSensorComponentBase.GetCastType()
    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use