docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Constructor ObservationSpec

    ObservationSpec(InplaceArray<int>, InplaceArray<DimensionProperty>, ObservationType)

    Create a general ObservationSpec from the shape, dimension properties, and observation type.

    Declaration
    public ObservationSpec(InplaceArray<int> shape, InplaceArray<DimensionProperty> dimensionProperties, ObservationType observationType = ObservationType.Default)
    Parameters
    Type Name Description
    InplaceArray<int> shape
    InplaceArray<DimensionProperty> dimensionProperties
    ObservationType observationType
    Remarks

    Note that not all combinations of DimensionProperty may be supported by the trainer. shape and dimensionProperties must have the same size.

    Exceptions
    Type Condition
    UnityAgentsException
    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