docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class SimpleMultiAgentGroup

    A basic class implementation of MultiAgentGroup.

    Inheritance
    object
    SimpleMultiAgentGroup
    Implements
    IMultiAgentGroup
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.MLAgents
    Assembly: solution.dll
    Syntax
    public class SimpleMultiAgentGroup : IMultiAgentGroup, IDisposable

    Methods

    Name Description
    AddGroupReward(float)

    Increments the group rewards for all agents in this MultiAgentGroup.

    Dispose()

    Disposes of the SimpleMultiAgentGroup.

    EndGroupEpisode()

    End episodes for all agents in this MultiAgentGroup.

    GetId()

    Get the ID of MultiAgentGroup.

    GetRegisteredAgents()

    Get list of all agents currently registered to this MultiAgentGroup.

    GroupEpisodeInterrupted()

    Indicate that the episode is over but not due to the "fault" of the group. This has the same end result as calling EndGroupEpisode(), but has a slightly different effect on training.

    RegisterAgent(Agent)

    Register agent to the MultiAgentGroup.

    SetGroupReward(float)

    Set the group rewards for all agents in this MultiAgentGroup.

    UnregisterAgent(Agent)

    Unregister agent from the MultiAgentGroup.

    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