docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMultiAgentGroup

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

    Namespace: Unity.MLAgents
    Assembly: Unity.ML-Agents.dll
    Syntax
    public interface IMultiAgentGroup

    Methods

    GetId()

    Get the ID of MultiAgentGroup.

    Declaration
    int GetId()
    Returns
    Type Description
    int

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)