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" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsTrainingEnvironment.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AgentId="-1"))
bool HasReward
(
const int32 AgentId
) const
Remarks
Returns true if GatherRewards has been called and the reward already set for the given agent.