Interface IMultiAgentGroup
MultiAgentGroup interface for grouping agents to support multi-agent training.
Namespace: Unity.MLAgents
Syntax
public interface IMultiAgentGroupMethods
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. |