Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsPolicy > API/Plugins/LearningAgents/ULearningAgentsPolicy/GetMemoryState
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 GetMemoryState
(
TArray < float > & OutMemoryState,
const int32 AgentId
) const
Remarks
Gets the current memory state for a given agent as represented by an abstract vector learned by the policy.
Parameters
| Name | Description |
|---|---|
| OutMemoryState | The output memory state of the agent |
| AgentId | The AgentId to get the memory state of |