docs.unity.cn
    Show / Hide Table of Contents

    Interface IMultiAgentGroup

    MultiAgentGroup interface for grouping agents to support multi-agent training.

    Namespace: Unity.MLAgents
    Syntax
    public interface IMultiAgentGroup

    Methods

    GetId()

    Get the ID of MultiAgentGroup.

    Declaration
    int GetId()
    Returns
    Type Description
    Int32

    MultiAgentGroup ID.

    RegisterAgent(Agent)

    Register agent to the MultiAgentGroup.

    Declaration
    void RegisterAgent(Agent agent)
    Parameters
    Type Name Description
    Agent agent

    The Agent to register.

    UnregisterAgent(Agent)

    Unregister agent from the MultiAgentGroup.

    Declaration
    void UnregisterAgent(Agent agent)
    Parameters
    Type Name Description
    Agent agent

    The Agent to unregister.

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use