docs.unity.cn
    Show / Hide Table of Contents

    Class SensorComponent

    Editor components for creating Sensors. Generally an ISensor implementation should have a corresponding SensorComponent to create it.

    Inheritance
    Object
    SensorComponent
    Match3SensorComponent
    BufferSensorComponent
    CameraSensorComponent
    GridSensorComponent
    RayPerceptionSensorComponentBase
    RenderTextureSensorComponent
    VectorSensorComponent
    Namespace: Unity.MLAgents.Sensors
    Syntax
    public abstract class SensorComponent : MonoBehaviour

    Methods

    CreateSensors()

    Create the ISensors. This is called by the Agent when it is initialized.

    Declaration
    public abstract ISensor[] CreateSensors()
    Returns
    Type Description
    ISensor[]

    Created ISensor objects.

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use