docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Constructor Match3Sensor

    Match3Sensor(AbstractBoard, GridValueProvider, int, Match3ObservationType, string)

    Create a sensor for the GridValueProvider with the specified observation type.

    Declaration
    public Match3Sensor(AbstractBoard board, GridValueProvider gvp, int oneHotSize, Match3ObservationType obsType, string name)
    Parameters
    Type Name Description
    AbstractBoard board

    The abstract board.

    GridValueProvider gvp

    The GridValueProvider, should be either board.GetCellType or board.GetSpecialType.

    int oneHotSize

    The number of possible values that the GridValueProvider can return.

    Match3ObservationType obsType

    Whether to produce vector or visual observations

    string name

    Name of the sensor.

    Remarks

    Use Match3Sensor.CellTypeSensor() or Match3Sensor.SpecialTypeSensor() instead of calling the constructor directly.

    In This Article
    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