Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/UFloatReward
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsRewards.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
void SetFloatReward
&40;
const int32 AgentId,
const float Reward
&41;
Remarks
Sets the data for this reward. Call during ULearningAgentsTrainer::SetRewards event.
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id this data corresponds to. |
| Reward | The value currently being rewarded. |