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 MakeCompletionOnTimeElapsed
(
const float Time,
const float TimeThreshold,
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 a time goes above a threshold. The resulting completion.
Parameters
| Name | Description |
|---|---|
| Time | The current time. |
| TimeThreshold | The time 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. |