Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsImitationTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsImitationTrainer.h |
| Include | #include "LearningAgentsImitationTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsImitationTrainer.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents",
Meta=(Class="/Script/LearningAgentsTraining.LearningAgentsImitationTrainer", DeterminesOutputType="Class"))
static ULearningAgentsImitationTrainer * MakeImitationTrainer
(
ULearningAgentsManager *& InManager,
ULearningAgentsInteractor *& InInteractor,
ULearningAgentsPolicy *& InPolicy,
const FLearningAgentsCommunicator & Communicator,
TSubclassOf < ULearningAgentsImitationTrainer > Class,
const FName Name
)
Remarks
Constructs the imitation trainer and runs the setup functions.
Parameters
| Name | Description |
|---|---|
| InManager | The agent manager we are using. |
| InInteractor | The agent interactor we are recording with. |
| InPolicy | The policy we are using. |
| Communicator | The communicator. |
| Class | The trainer class. |
| Name | The trainer name. |