docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Constructor ActionBuffers

    ActionBuffers(float[], int[])

    Construct an ActionBuffers instance with the continuous and discrete actions that will be used. ///

    Declaration
    public ActionBuffers(float[] continuousActions, int[] discreteActions)
    Parameters
    Type Name Description
    float[] continuousActions

    The continuous actions to send to an IActionReceiver.

    int[] discreteActions

    The discrete actions to send to an IActionReceiver.

    ActionBuffers(ActionSegment<float>, ActionSegment<int>)

    Construct an ActionBuffers instance with the continuous and discrete actions that will be used.

    Declaration
    public ActionBuffers(ActionSegment<float> continuousActions, ActionSegment<int> discreteActions)
    Parameters
    Type Name Description
    ActionSegment<float> continuousActions

    The continuous actions to send to an IActionReceiver.

    ActionSegment<int> discreteActions

    The discrete actions to send to an IActionReceiver.

    ActionBuffers(ActionSpec)

    Construct an ActionBuffers instance with ActionSpec. All values are initialized to zeros. ///

    Declaration
    public ActionBuffers(ActionSpec actionSpec)
    Parameters
    Type Name Description
    ActionSpec actionSpec

    The ActionSpec to send to an IActionReceiver.

    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