docs.unity3d.com
    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.CreateSensor()
    RayPerceptionSensorComponentBase.GetObservationShape()
    RayPerceptionSensorComponentBase.GetRayPerceptionInput()
    SensorComponent.IsVisual()
    SensorComponent.IsVector()
    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
    Overrides
    RayPerceptionSensorComponentBase.GetCastType()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023