Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/UConditionalCompletion
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&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;DefaultToSelf&61;"InAgentTrainer"&41;&41;
static UConditionalCompletion &42; AddConditionalCompletion
&40;
ULearningAgentsTrainer &42; InAgentTrainer,
const FName Name,
const ELearningAgentsCompletion InCompletionMode
&41;
Remarks
Adds a new conditional completion to the given trainer. Call during ULearningAgentsTrainer::SetupCompletions event. The newly created completion.
Parameters
| Name | Description |
|---|---|
| InAgentTrainer | The trainer to add this completion to. |
| Name | The name of this new completion. Used for debugging. |
| InCompletionMode | The completion mode. |