Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsTrainingEnvironme-
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsTrainingEnvironment.h |
| Include | #include "LearningAgentsTrainingEnvironment.h" |
UFUNCTION (BlueprintNativeEvent, Category="LearningAgents", Meta=(ForceAsFunction))
void GatherAgentReward
(
float & OutReward,
const int32 AgentId
)
Remarks
This callback should be overridden by the Trainer and gathers the reward value for the given agent.
Parameters
| Name | Description |
|---|---|
| OutReward | Output reward for the given agent. |
| AgentId | Agent id to gather reward for. |