Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsInteractor > API/Plugins/LearningAgents/ULearningAgentsInteractor/EncodeObservations
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsInteractor.h |
| Include | #include "LearningAgentsInteractor.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsInteractor.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents"&41;
void EncodeObservations&40;&41;
Remarks
Call this function when it is time to gather all the observations for your agents. This can be done each frame or you can consider wiring it up to some kind of meaningful event, e.g. a hypothetical "OnAITurnStarted" if you have a turn-based game. This will call this agent interactor's SetObservations event.