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