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 (BlueprintCallable, Category="LearningAgents", Meta=(AgentId=1))
void SetMemoryState
(
const int32 AgentId,
const TArray < float > & InMemoryState
)
Remarks
Sets the current memory state for a given agent as represented by an abstract vector learned by the policy.
Parameters
| Name | Description |
|---|---|
| AgentId | The AgentId to set the memory state of |
| InMemoryState | The input memory state of the agent |