Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsCritic
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsCritic.h |
| Include | #include "LearningAgentsCritic.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsCritic.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents"&41;
void SetupCritic
&40;
ULearningAgentsInteractor &42; InInteractor,
const FLearningAgentsCriticSettings & CriticSettings,
ULearningAgentsNeuralNetwork &42; NeuralNetworkAsset
&41;
Remarks
Initializes this object to be used with the given agent interactor and critic settings.
Parameters
| Name | Description |
|---|---|
| InInteractor | The input Interactor component |
| CriticSettings | The critic settings to use |
| NeuralNetworkAsset | Optional Network Asset to use. If provided must match the given CriticSettings. If not provided or asset is empty then a new neural network object will be created according to the given CriticSettings and used. |