docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method FromDiscreteActions

    FromDiscreteActions(float[])

    Create an ActionBuffers instance with discrete actions stored as a float array. This exists to achieve backward compatibility with the former Agent methods which used a float array for both continuous and discrete actions.

    Declaration
    public static ActionBuffers FromDiscreteActions(float[] discreteActions)
    Parameters
    Type Name Description
    float[] discreteActions

    The float array of discrete actions.

    Returns
    Type Description
    ActionBuffers

    An ActionBuffers instance initialized with a DiscreteActions ActionSegment<T> initialized from a float array.

    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