Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsReward
- UFloatReward
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
Syntax
UCLASS&40;&41;
class UFloatReward : public ULearningAgentsReward
Remarks
A simple float reward. Used as a catch-all for situations where a more type-specific reward does not exist yet.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< UE::Learning::FFloatReward > | RewardObject |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UFloatReward * | AddFloatReward
(
ULearningAgentsTrainer* InAgentTrainer, |
Adds a new float reward to the given trainer. | |
| void | SetFloatReward
(
const int32 AgentId, |
Sets the data for this reward. |
Overridden from ULearningAgentsReward
| Type | Name | Description | |
|---|---|---|---|
| void | VisualLog
(
const UE::Learning::FIndexSet Instances |
Describes this reward to the visual logger for debugging purposes. |