docs.unity3d.com
    Show / Hide Table of Contents

    Class VectorSensorComponent

    A SensorComponent that creates a VectorSensor.

    Inheritance
    Object
    SensorComponent
    VectorSensorComponent
    Namespace: Unity.MLAgents.Sensors
    Syntax
    public class VectorSensorComponent : SensorComponent

    Properties

    ObservationSize

    The number of float observations in the VectorSensor

    Declaration
    public int ObservationSize { get; set; }
    Property Value
    Type Description
    Int32

    ObservationStacks

    Whether to stack previous observations. Using 1 means no previous observations. Note that changing this after the sensor is created has no effect.

    Declaration
    public int ObservationStacks { get; set; }
    Property Value
    Type Description
    Int32

    ObservationType

    The type of the observation.

    Declaration
    public ObservationType ObservationType { get; set; }
    Property Value
    Type Description
    ObservationType

    SensorName

    Name of the generated VectorSensor object. Note that changing this at runtime does not affect how the Agent sorts the sensors.

    Declaration
    public string SensorName { get; set; }
    Property Value
    Type Description
    String

    Methods

    CreateSensors()

    Creates a VectorSensor.

    Declaration
    public override ISensor[] CreateSensors()
    Returns
    Type Description
    ISensor[]
    Overrides
    SensorComponent.CreateSensors()

    GetSensor()

    Returns the underlying VectorSensor

    Declaration
    public VectorSensor GetSensor()
    Returns
    Type Description
    VectorSensor
    Back to top
    Terms of use
    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