Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsCompletions
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsCompletions.h |
| Include | #include "LearningAgentsCompletions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsCompletions.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents",
Meta=(AdvancedDisplay=3, DefaultToSelf="VisualLoggerListener"))
static ELearningAgentsCompletion MakeCompletionOnEpisodeStepsRecorded
(
const int32 EpisodeSteps,
const int32 MaxEpisodeSteps,
const ELearningAgentsCompletion CompletionType,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener * VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
Remarks
Make a completion when the number of episode steps recorded exceeds some threshold. The resulting completion.
Parameters
| Name | Description |
|---|---|
| EpisodeSteps | The number of steps recorded. |
| MaxEpisodeSteps | The step threshold above which to complete with the given CompletionType. |
| CompletionType | The type of completion to make |
| Tag | The tag for the completion. Used for debugging. |
| bVisualLoggerEnabled | When true, debug data will be sent to the visual logger. |
| VisualLoggerListener | The listener object which is making this completion. This must be set to use logging. |
| VisualLoggerAgentId | The agent id associated with this completion. |
| VisualLoggerLocation | A location for the visual logger information in the world. |
| VisualLoggerColor | The color for the visual logger display. |