docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct AgentInfo

    Struct that contains all the information for an Agent, including its observations, actions and current status.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.MLAgents
    Assembly: solution.dll
    Syntax
    public struct AgentInfo

    Fields

    Name Description
    discreteActionMasks

    For discrete control, specifies the actions that the agent cannot take. An element of the mask array is true if the action is prohibited.

    done

    Whether the agent is done or not.

    episodeId

    Episode identifier each agent receives at every reset. It is used to separate between different agents in the environment.

    groupId

    MultiAgentGroup identifier.

    groupReward

    The current group reward received by the agent.

    maxStepReached

    Whether the agent has reached its max step count for this episode.

    reward

    The current agent reward.

    storedActions

    Keeps track of the last actions taken by the Brain.

    Methods

    Name Description
    ClearActions()
    CopyActions(ActionBuffers)
    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