Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsTrainingEnvironme-
Description
This callback can be overridden by the Trainer and gathers all the completions for the given set of agents. By default this will call GatherAgentCompletion on each agent.
| Name | GatherAgentCompletions |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsTrainingEnvironment.h |
| Include Path | #include "LearningAgentsTrainingEnvironment.h" |
UFUNCTION (BlueprintNativeEvent, Category="LearningAgents", Meta=(ForceAsFunction))
void GatherAgentCompletions
(
TArray < ELearningAgentsCompletion > & OutCompletions,
const TArray < int32 > & AgentIds
)
Parameters
| Name | Remarks |
|---|---|
| OutCompletions | Output completions for each agent in AgentIds |
| AgentIds | Agents to gather completions for. |