docs.unity.cn
    Show / Hide Table of Contents

    Class Match3SensorComponent

    Sensor component for a Match3 game.

    Inheritance
    Object
    SensorComponent
    Match3SensorComponent
    Namespace: Unity.MLAgents.Integrations.Match3
    Syntax
    public class Match3SensorComponent : SensorComponent, IDisposable

    Properties

    ObservationType

    Type of observation to generate.

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

    SensorName

    Name of the generated Match3Sensor 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()

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

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

    Created ISensor objects.

    Overrides
    SensorComponent.CreateSensors()

    Dispose()

    Clean up the sensors created by CreateSensors().

    Declaration
    public void Dispose()
    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use